dpctl.tensor.usm_ndarray.__dlpack_device__¶
- usm_ndarray.__dlpack_device__()¶
Gives a tuple (
device_type,device_id) corresponding toDLDeviceentry inDLTensorin 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
dpctl.tensor.DLDeviceTypefor a list of devices supported by the DLPack protocol.- Raises:
DLPackCreationError – when the
device_idcould not be determined.