dpnp.ndarray.device
property
- property ndarray.device
Return
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.Examples
>>> import dpnp as np >>> x = np.ones(10) >>> x.device Device(level_zero:gpu:0)