Closed njroussel closed 6 months ago
This PR changes ndarray_check such that it returns True if one of the following conditions is met:
ndarray_check
True
__dlpack__
With this change, ndarray_check more closely matches the logic of supported imports through ndarray_import.
ndarray_import
I've added a straightforward test which checks this new behavior on an object with a __dlpack__ attribute.
Thanks!
This PR changes
ndarray_check
such that it returnsTrue
if one of the following conditions is met:__dlpack__
attributeWith this change,
ndarray_check
more closely matches the logic of supported imports throughndarray_import
.I've added a straightforward test which checks this new behavior on an object with a
__dlpack__
attribute.