You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The property raises TypeError informing user that
implicit conversions from usm_ndarray to numpy.ndarray
are not permitted.
Explicit conversion using `dpctl.tensor.asnumpy` is
advised.
Disallowing implicit conversion prevents `np.asarray(usm_ar)`
from creating an array of 0D usm_ndarray instances, because
using it is very costly due to multitude of short-array transfers
from GPU to host.
0 commit comments