How to use cupy.lib.stride_tricks.as_strided(x, shape=None, strides=None)
How to use cupy.lib.stride_tricks.as_strided(x, shape=None, strides=None) Question: I was using: np.lib.stride_tricks.sliding_window_view with a 1D-array and two parameters (the array and the length of the subset n) to slice it into slices of n elements (n < 1D-array.shape, of course) I think I can go faster with cupy and I started with: cupy.lib.stride_tricks.as_strided(x, shape=None, strides=None) Documentation …