We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2198a35 commit bb3e4eaCopy full SHA for bb3e4ea
src/array_api_extra/_lib/_funcs.py
@@ -386,7 +386,7 @@ def one_hot(
386
xp: ModuleType,
387
) -> Array: # numpydoc ignore=PR01,RT01
388
"""See docstring in `array_api_extra._delegation.py`."""
389
- x_size = x.size
+ x_size = _compat.size(x)
390
if x_size is None: # pragma: no cover
391
# This cannot be tested because there is no way to create an array with abstract
392
# size today. However, it is blocked for the sake of type-checking and
0 commit comments