Convolution_model_Step_by_Step_v1, too many indices for array

In the deepest for loop of " conv_forward" function I used the previous function that had been written (conv_single_step), but I encounter with “too many indices for array” error in the line that I call “conv_single_step” function, to be honest I don’t know what that means exactly.

Hi @reza1,

What tensor are you sending to the function conv_single_step? Is it the mini-batch, or a slice of it?

a_slice_preve variable, a three dimension variable(just like weights) that is carved from a_prev_pad .

I’ve found out where the problem was, it was because Z had been initialized in wrong shape (n_h,n_w,n_c) instead of (m,n_h,n_w,n_c), thanks anyway.

3 Likes