Week 1 Assignment 1 conv_forward problem

Hi, I’ve got an issue as below with conv_forward function. Any suggestion how to solve? Thanks!

Z’s mean =
0.5511277
Z[0,2,1] =
[-2.1779604 8.071713 -0.5772706 3.3628676 4.4811363 -2.8919847
10.992888 3.0317194]
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


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)
118 ]
119
→ 120 multiple_test(test_cases, target)
121
122

~/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.

Suggestion: Look at the code you wrote in conf_forward(), and compare it with the instructions.

You can also search the forum for “conv_forward”, and find other threads about this function.