CupyBackend.compute_convolution_shapes#

CupyBackend.compute_convolution_shapes(arr1_shape, arr2_shape)[source]#

Computes regular, optimized and fourier convolution shape.

Parameters:
arr1_shapetuple

Tuple of integers corresponding to array1 shape.

arr2_shapetuple

Tuple of integers corresponding to array2 shape.

Returns:
tuple

Tuple with regular convolution shape, convolution shape optimized for faster fourier transform, shape of the forward fourier transform (see build_fft()).