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

Method __dlpack_device__

numpy/array_api/_array_object.py:489–494  ·  view source on GitHub ↗

Performs the operation __dlpack_device__.

(self: Array, /)

Source from the content-addressed store, hash-verified

487 return self._array.__dlpack__(stream=stream)
488
489 def __dlpack_device__(self: Array, /) -> Tuple[IntEnum, int]:
490 """
491 Performs the operation __dlpack_device__.
492 """
493 # Note: device support is required for this
494 return self._array.__dlpack_device__()
495
496 def __eq__(self: Array, other: Union[int, float, bool, Array], /) -> Array:
497 """

Callers 1

test_dlpack_deviceMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_dlpack_deviceMethod · 0.64