dpnp.dpnp_array.dpnp_array.device
property
- property dpnp_array.device
- Return - dpctl.tensor.Deviceobject representing residence of the array data.- The - Deviceobject represents Array API notion of the device, and contains- dpctl.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)