Skip to content

Commit 94f2985

Browse files
committed
broadcast_shapes
1 parent 349d77e commit 94f2985

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/array_api_extra/_lib/_lazy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from types import ModuleType
1010
from typing import TYPE_CHECKING, Any, cast, overload
1111

12+
from ._funcs import broadcast_shapes
1213
from ._utils import _compat
1314
from ._utils._compat import (
1415
array_namespace,
@@ -207,9 +208,7 @@ def lazy_apply( # type: ignore[valid-type] # numpydoc ignore=GL07,SA04
207208
multi_output = False
208209

209210
if shape is None:
210-
# FIXME https://github.com/data-apis/array-api-extra/pull/133
211-
# shapes = [broadcast_shapes(*(arg.shape for arg in args))]
212-
shapes = [xp.broadcast_arrays(*args)[0].shape]
211+
shapes = [broadcast_shapes(*(arg.shape for arg in args))]
213212
elif all(isinstance(s, int | None) for s in shape):
214213
# Do not test for shape to be a tuple
215214
# https://github.com/data-apis/array-api/issues/891#issuecomment-2637430522

0 commit comments

Comments
 (0)