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 PR implements `dpnp.ndarray.__array__` method that raises
`TypeError` to disallow implicit conversion of `dpnp.ndarray` to
`numpy.ndarray`.
While explicit conversion using `dpnp.ndarray.asnumpy` method is
advised.
Disallowing implicit conversion prevents `numpy.asarray(dpnp_arr)` from
creating an array of 0D `dpnp.ndarray` instances, because
using it is very costly due to multitude of short-array transfers from
GPU to host.
0 commit comments