I’ve read through the forum and I think my dimensions and loops are correct but I’m getting the following error:
shape of Z = (2, 3, 4, 8)
shape of A_prev_pad = (2, 7, 9, 4)
number of test images = 2
n_H = 3
n_W = 4
n_C = 8
n_H = 3
n_W = 4
n_C = 8
shape of Z = (2, 3, 4, 8)
Z’s mean =
0.3546941001261432
Z[0,2,1] =
[ 1.67079542 0.29511197 -2.15347143 6.51296288 1.1659603 0.73753314
1.54560046 4.69041001]
cache_conv[0][1][2][3] =
[-1.1191154 1.9560789 -0.3264995 -1.34267579]
First Test: Z’s mean is incorrect. Expected: 0.5511276474566768
Your output: 0.3546941001261432
First Test: Z[0,2,1] is incorrect. Expected: [-2.17796037, 8.07171329, -0.5772704, 3.36286738, 4.48113645, -2.89198428, 10.99288867, 3.03171932]
Your output: [ 1.67079542 0.29511197 -2.15347143 6.51296288 1.1659603 0.73753314
1.54560046 4.69041001]
Any suggestions are greatly appreciated.