Hi,
I’m getting the following Assertion Error when I was working on the first programming exercise of Week 1 in DLS4:
AssertionError: Not all tests were passed for conv_forward. Check your equations and avoid using global variables inside the function.
Here’s my output from the conv_forward_test(conv_forward):
Z’s mean =
0.5329033220060434
Z[0,2,1] =
[-0.05723279 0.03991888 -6.24285862 0.53960581 -5.04059676 6.96991358
3.69509379 -0.20955895]
cache_conv[0][1][2][3] =
[-1.1191154 1.9560789 -0.3264995 -1.34267579]
(2, 13, 15, 8)
Error: Wrong output for variable in position 0.
2 Tests passed
1 Tests failed
I can’t seem to find the error. Any help would be greatly appreciated.
Thanks,
Nay