You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that __array__ is removed in the latest version, and from_dlpack is suggested. But when I use it, I found that from_dlpack throws the following error:
>>>importnumpyasnp>>>importarray_api_strict>>>np.from_dlpack(array_api_strict.asarray(0))
(1, 0)
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/home/jz748/anaconda3/lib/python3.10/site-packages/array_api_strict/_array_object.py", line592, in__dlpack__raiseNotImplementedError("The max_version argument to __dlpack__ is not yet implemented")
NotImplementedError: Themax_versionargumentto__dlpack__isnotyetimplemented
version: numpy 2.1.3 array_api_strict 2.1.1
So, there is no way to convert an array_api_strict array to numpy?
The text was updated successfully, but these errors were encountered:
njzjz
added a commit
to njzjz/deepmd-kit
that referenced
this issue
Nov 7, 2024
I see that
__array__
is removed in the latest version, andfrom_dlpack
is suggested. But when I use it, I found thatfrom_dlpack
throws the following error:version: numpy 2.1.3 array_api_strict 2.1.1
So, there is no way to convert an array_api_strict array to numpy?
The text was updated successfully, but these errors were encountered: