0

I have a single image of shape img.shape = (500, 439, 3)
The convolution function is
def convolution(image, kernel, stride=1, pad=0):
n_h, n_w, _ = image.shape
f = kernel.shape[0]
kernel = np.repeat(kernel[None,:], 3, axis=0)
kernel = kernel.transpose()
n_H = int(((n_h + ...