File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def is_ndonnx_array(x):
145
145
146
146
import ndonnx as ndx
147
147
148
- return isinstance (x , ndx .Array )
148
+ return isinstance (x , ndx .Array )
149
149
150
150
def is_dask_array (x ):
151
151
"""
@@ -340,12 +340,9 @@ def your_function(x, y):
340
340
elif use_compat is False :
341
341
namespaces .add (np )
342
342
else :
343
- # numpy 2.0 has __array_namespace__ and is fully array API
343
+ # numpy 2.0+ have __array_namespace__, however, they are not yet fully array API
344
344
# compatible.
345
- if hasattr (np .empty (0 ), '__array_namespace__' ):
346
- namespaces .add (np .empty (0 ).__array_namespace__ (api_version = api_version ))
347
- else :
348
- namespaces .add (numpy_namespace )
345
+ namespaces .add (numpy_namespace )
349
346
elif is_cupy_array (x ):
350
347
if _use_compat :
351
348
_check_api_version (api_version )
You can’t perform that action at this time.
0 commit comments