dpnp icon indicating copy to clipboard operation
dpnp copied to clipboard

Follow ```__sycl_usm_array_interface__``` standard in ```asarray```

Open icfaust opened this issue 3 months ago • 1 comments

As of now, arrays which present the __sycl_usm_array_interface__ analogous to the numpy __array__ interface are copied, which is not the case in dpctl. This is problematic for scikit-learn-intelex, and ideally dpnp should out-of-the-box support implementations of this standard. It would be nice if a check was added in asarray to directly convert objects with that interface to dpt tensors for consumption by dpnp.

https://intelpython.github.io/dpctl/latest/api_reference/dpctl/sycl_usm_array_interface.html

icfaust avatar Aug 06 '25 14:08 icfaust