Skip to content

Commit 10ae3ea

Browse files
authored
Merge pull request #19083 from hameerabbasi/dlpack
ENH: Implement the DLPack Array API protocols for ndarray. Original NumPy Commit: 0de29c58e3eede2bb65b51dbf72a93b767d04d49
2 parents 3a57d82 + 60d8c05 commit 10ae3ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

array_api_strict/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
empty,
137137
empty_like,
138138
eye,
139-
from_dlpack,
139+
_from_dlpack,
140140
full,
141141
full_like,
142142
linspace,
@@ -155,7 +155,7 @@
155155
"empty",
156156
"empty_like",
157157
"eye",
158-
"from_dlpack",
158+
"_from_dlpack",
159159
"full",
160160
"full_like",
161161
"linspace",

array_api_strict/_creation_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def eye(
151151
return Array._new(np.eye(n_rows, M=n_cols, k=k, dtype=dtype))
152152

153153

154-
def from_dlpack(x: object, /) -> Array:
154+
def _from_dlpack(x: object, /) -> Array:
155155
# Note: dlpack support is not yet implemented on Array
156156
raise NotImplementedError("DLPack support is not yet implemented")
157157

0 commit comments

Comments
 (0)