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