dpnp.ndarray.__dlpack_device__
method
- ndarray.__dlpack_device__()
Give a tuple (
device_type
,device_id
) corresponding toDLDevice
entry inDLTensor
in DLPack protocol.The tuple describes the non-partitioned device where the array has been allocated, or the non-partitioned parent device of the allocation device.
See
dpnp.DLDeviceType
for a list of devices supported by the DLPack protocol.- Raises:
DLPackCreationError -- when the
device_id
could not be determined.