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
{{ message }}
Repository navigation
NEP-18: fix() with CuPy array depends on __array_wrap__ #4496
Calling dask.array.fix() on a Dask array created from a CuPy array fails as it depends on unimplemented __array_wrap__ from CuPy. There's an issue open to add that feature to CuPy cupy/cupy#589.
FWIW raised issue ( numpy/numpy#13100 ) to see if fix and a few other functions could be converted to ufuncs, which would be one way to solve this. Please feel free to join the discussion over there if it is of interest.
CuPy does implement where, which could be dispatched to via NEP 18. Also ceil and floor are both ufuncs, which already dispatch through the __array_ufunc__ protocol.
Activity
jakirkham commentedon Mar 6, 2019
FWIW raised issue ( numpy/numpy#13100 ) to see if
fixand a few other functions could be converted to ufuncs, which would be one way to solve this. Please feel free to join the discussion over there if it is of interest.pentschev commentedon Mar 6, 2019
Thanks @jakirkham, I've subscribed for notifications, I'll join if I can help with something. :)
jakirkham commentedon Mar 18, 2019
Just in case it is needed, here's a workaround.
CuPy does implement
where, which could be dispatched to via NEP 18. Alsoceilandfloorare bothufuncs, which already dispatch through the__array_ufunc__protocol.pentschev commentedon May 21, 2019
Closing this, since #4708 was merged already.