Week 1 Assignment 1 conv_forward fxn

Hello, this is what I tried originally. e.g, for w in range(n_W), but I got an assertion error telling me to remember to use the stride so i thought i had to skip every other iteration in the for loop. Actually, I still think this should be true based on what I understand about stride and I don’t know why it isn’t. But anyway, my code still does not work after this.

1 Like

Yes, this is what I am currently doing in my code

1 Like

Sorry, maybe I was unclear, the 2nd block of code labeled “this is correct” is what I am currently doing. This was actually my original submission before I changed it to the 1st code block due to failing the tests.

1 Like

I’ve removed my last few messages on this topic.

Please click my name and message your notebook as an attachment.

The calculation of vert_* and horiz_* is incorrect.

Here’s a thread that has a nice description of how the algorithms work here.