C4_W1_Exercise 3_Error in conv_forward func

Thanks. I have corrected my mistake now.

Hi, Thank you in advance.
I have added the stride in the loops over horizontal axis and vertical axis like this ( for h in range(0, n_H, stride) and for w in range(0, n_W, stride)).
I still have the same problem.

Hi amina,

Remember that you are looping over the range of the output volume. The stride is applied to the input volume inside that loop.


Thank you so much! I got it

I have similar issue.
Struggling since days !
Please help

Found solution
Its about usage of Strides !

For loop should have range of n_H
vert_start = h * stride
vert_end = vert_start + f