Week 1 assignment 1 conv_forward()

In conv_forward() not know how to select vertical start and end , due to this I’m stuck at this assignment for 3 days.Please help

Vertical start is h * stride.
Vertical end is vertical start plus f.


Right! And the analogous logic applies for horiz_start and horiz_end. The way to think about this is that the loops in conv_forward are over the output space. Then at each iteration you need to calculate the correct corresponding position in the input space, which is what @TMosh has showed you how to do.