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 following throws an exception with cupy, but works fine with numpy.
import numpy as np
import cupy as cp
import dask.array as da
x = cp.random.randn(128, 128, 128)
da.pad(x, tuple((0, x.shape[dim]) for dim in range(x.ndim)), mode = 'constant')