MCPcopy Create free account
hub / github.com/numpy/numpy / __dlpack__

Method __dlpack__

numpy/array_api/_array_object.py:483–487  ·  view source on GitHub ↗

Performs the operation __dlpack__.

(self: Array, /, *, stream: None = None)

Source from the content-addressed store, hash-verified

481 return res
482
483 def __dlpack__(self: Array, /, *, stream: None = None) -> PyCapsule:
484 """
485 Performs the operation __dlpack__.
486 """
487 return self._array.__dlpack__(stream=stream)
488
489 def __dlpack_device__(self: Array, /) -> Tuple[IntEnum, int]:
490 """

Callers 4

test_readonlyMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_readonlyMethod · 0.36