dpctl.tensor.usm_ndarray.device¶
- usm_ndarray.device¶
Returns
dpctl.tensor.Deviceobject representing residence of the array data.The
Deviceobject represents Array API notion of the device, and containsdpctl.SyclQueueassociated with this array. Hence,.deviceproperty provides information distinct from.sycl_deviceproperty.- Example:
>>> from dpctl import tensor >>> x = tensor.ones(10) >>> x.device Device(level_zero:gpu:0)