Week1 assignment1

Notice that the first test for conv_forward has stride = 2 and the second one has stride = 1. So the most likely possibility is that you are implementing the stride incorrectly. Also notice that your values for the second pool_forward case will be wrong if that is what the problem is: look carefully at all the values, not just the first row. There is a problem with that test in that it does not “throw” when the values don’t match. You just have to look very carefully.

The stride is what trips most people up, so you can find plenty of other threads about this issue. E.g. this one or this one.

1 Like