File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ def __dlpack__(
364
364
``__dlpack__`` to return a capsule referencing an array whose underlying memory is
365
365
accessible to the Python interpreter (represented by the ``kDLCPU`` enumerator in DLPack).
366
366
If a copy must be made to enable this support but ``copy`` is set to ``False``, the
367
- function must raise ``ValueError ``.
367
+ function must raise ``BufferError ``.
368
368
369
369
Other device kinds will be considered for standardization in a future version of this
370
370
API standard.
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ def __dlpack__(
364
364
``__dlpack__`` to return a capsule referencing an array whose underlying memory is
365
365
accessible to the Python interpreter (represented by the ``kDLCPU`` enumerator in DLPack).
366
366
If a copy must be made to enable this support but ``copy`` is set to ``False``, the
367
- function must raise ``ValueError ``.
367
+ function must raise ``BufferError ``.
368
368
369
369
Other device kinds will be considered for standardization in a future version of this
370
370
API standard.
You can’t perform that action at this time.
0 commit comments