We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__dlpack__
1 parent 52bbfeb commit 72a21adCopy full SHA for 72a21ad
src/array_api_stubs/_draft/array_object.py
@@ -364,7 +364,7 @@ def __dlpack__(
364
``__dlpack__`` to return a capsule referencing an array whose underlying memory is
365
accessible to the Python interpreter (represented by the ``kDLCPU`` enumerator in DLPack).
366
If a copy must be made to enable this support but ``copy`` is set to ``False``, the
367
- function must raise ``ValueError``.
+ function must raise ``BufferError``.
368
369
Other device kinds will be considered for standardization in a future version of this
370
API standard.
0 commit comments