C4W1 Exercise 3 - conv_forward

Hi,
More than one week ago the same wrote code passed from success to error.
Can someone help me?

Output:
Z’s mean =
0.5511276474566768
Z[0,2,1] =
[-2.17796037 8.07171329 -0.5772704 3.36286738 4.48113645 -2.89198428
10.99288867 3.03171932]
cache_conv[0][1][2][3] =
[-1.1191154 1.9560789 -0.3264995 -1.34267579]

Error:
AssertionError: Wrong Z mean. Expected: -0.5384027772160062 got: -0.22100395509655646

I am facing a similar error. Is your’s resolved now?

Hi,
Yes it is resolved.
I couldn’t access may code, but from what I remembered it was related to the initialization. Used “np.random.randn” normal random initialization instead of a zero “np.zero”. Sorry, it’s all I can remember without the code.

I used zeros, my problem was thinking loop over n_H_prev instead of n_H