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 4c80f6d commit fa71e9eCopy full SHA for fa71e9e
array_api_strict/_array_object.py
@@ -586,7 +586,7 @@ def __dlpack__(
586
if copy is not _default:
587
raise ValueError("The copy argument to __dlpack__ requires at least version 2023.12 of the array API")
588
589
- if np.__version__ < '2.1':
+ if np.__version__[0] < '2.1':
590
if max_version not in [_default, None]:
591
raise NotImplementedError("The max_version argument to __dlpack__ is not yet implemented")
592
if dl_device not in [_default, None]:
0 commit comments