Week1 - Assignment 1

Hello every one…
I face a problem with the test cell of conv_forward function
the output (Z) must has (2,2,3,8) shape … actually the code you had written try to print Z[0,2,1]
but there is no index [2] ,
I don’t know if i have any mistake, but all dims are correct
i hope that i explain the problem enough to be clear

This means there is an error in your conv_forward() function, or in your conv_single_step() function.

Keep in mind that passing the built-in tests does not prove your code is perfect. There are lots of possible errors that are not covered by the tests.

1 Like

thank you for reply…
i found the bug in the code, i had a mistake with the formula of n_H&n_W