Commit 845382d
committed
Adapt from_dlpack to NumPy 2.1.0 behavior
NumPy 2.1.0 supports DLPack 1.0 now, and raises ValueError
if __dlpack__ method gets unsupport dl_device value.
Function from_dlpack now handles ValueError, the same way
as it handles BufferError1 parent 6e81050 commit 845382d
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | | - | |
1087 | | - | |
| 1086 | + | |
| 1087 | + | |
1088 | 1088 | | |
| 1089 | + | |
1089 | 1090 | | |
1090 | 1091 | | |
1091 | 1092 | | |
| |||
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
| 1148 | + | |
| 1149 | + | |
1147 | 1150 | | |
1148 | 1151 | | |
1149 | 1152 | | |
| |||
0 commit comments