Skip to content

Commit 00d1496

Browse files
committed
Add DLPackCreationError exception to docstring of dpnp.from_dlpack
1 parent 5eae948 commit 00d1496

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,9 +2231,12 @@ def from_dlpack(x, /, *, device=None, copy=None):
22312231
Raises
22322232
------
22332233
TypeError
2234-
if `obj` does not implement ``__dlpack__`` method
2234+
if `x` does not implement ``__dlpack__`` method
22352235
ValueError
22362236
if data of the input object resides on an unsupported device
2237+
DLPackCreationError
2238+
when `x` is allocated on a partitioned SYCL device, or with
2239+
a non-default context
22372240
22382241
Notes
22392242
-----

0 commit comments

Comments
 (0)