Skip to content

Commit a92e481

Browse files
committed
specify copy stream
1 parent e214fde commit a92e481

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/array_api_stubs/_draft/creation_functions.py

+2
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ def from_dlpack(
240240
copy: Optional[bool]
241241
boolean indicating whether or not to copy the input. If ``True``, the function must always copy. If ``False``, the function must never copy and must raise a ``BufferError`` in case a copy would be necessary (e.g. the producer disallows views). Default: ``False``.
242242
243+
If a copy is needed, the stream over which the copy is performed must be taken from the consumer, following the DLPack protocol (see :meth:`array.__dlpack__`).
244+
243245
Returns
244246
-------
245247
out: Union[array, Any]

0 commit comments

Comments
 (0)