[week 1] conv_forward: Wrong output for variable in position 0

I changed the code to consider strike in for loop h and loop w in range (n_H/W, stride). c in range n_C should be looped w/o stride. But there is still mistakes in the code which I can’t find.

I got the follow message:
Error: Wrong output for variable in position 0.
2 Tests passed
1 Tests failed


AssertionError Traceback (most recent call last)
in
11 print(“cache_conv[0][1][2][3] =\n”, cache_conv[0][1][2][3])
12
—> 13 conv_forward_test(conv_forward)

~/work/release/W1A1/public_tests.py in conv_forward_test(target)
382 ]
383
→ 384 multiple_test(test_cases, target)
385
386

~/work/release/W1A1/test_utils.py in multiple_test(test_cases, target)
151 print(’\033[91m’, len(test_cases) - success, " Tests failed")
152 raise AssertionError(
→ 153 “Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))

AssertionError: Not all tests were passed for conv_forward. Check your equations and avoid using global variables inside the function.

1 Like