Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Feb 1, 2025
1 parent 788e716 commit 11a9307
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ndonnx/_refactor/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ def numeric_like(x):

return [broadcast_to(a, target_shape) for a in arrays]

# TODO: Create upstream issue for a variadic broadcasting operator
# in the ONNX standard.
for a in arrays:
for el in a.shape:
if not isinstance(el, int):
raise ValueError(
"broadcasting dynamic dimensions is not (yet) supported."
)

res = np.broadcast_shapes(*[a.shape for a in arrays]) # type: ignore

return [broadcast_to(a, tuple(res)) for a in arrays]


def broadcast_to(x: Array, /, shape: tuple[int, ...] | Array) -> Array:
from ._typed_array.onnx import TyArrayInt64
Expand Down

0 comments on commit 11a9307

Please sign in to comment.