dpnp.ndarray.__usm_ndarray__
property
- property ndarray.__usm_ndarray__
Property to support
__usm_ndarray__protocol.It assumes to return
dpctl.tensor.usm_ndarrayinstance corresponding to the content of the object.This property is intended to speed-up conversion from
dpnp.ndarraytodpctl.tensor.usm_ndarraypassed intodpctl.tensor.asarray()function. The input object that implements__usm_ndarray__protocol is recognized as owner of USM allocation that is managed by a smart pointer, and asynchronous deallocation will not involve GIL.