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 proposes to implement `__array_namespace__` method of dpnp
ndarray, which is required to be compliant with python array API.
The method will return dpnp as an array namespace, member functions of
which implement data API.
The array namespace is assumed to be stored inside dpctl tensor. So dpnp
ndarray constructor is updated to explicitly pass `array_namespace=dpnp`
into `dpt.usm_ndarray` call. And also to set the namespace through
`_set_namespace(dpnp)` every time dpnp ndarray is created from
usm_ndarray.
0 commit comments