I’ve been scratching my head on this for several hours and not getting any traction. Does anyone have any hints or suggestions?
IndexError Traceback (most recent call last)
<ipython-input-13-7e580406a9e8> in <module>
6 "stride": 2}
7
----> 8 Z, cache_conv = conv_forward(A_prev, W, b, hparameters)
9 z_mean = np.mean(Z)
10 z_0_2_1 = Z[0, 2, 1]
<ipython-input-12-949e3b29daba> in conv_forward(A_prev, W, b, hparameters)
64 A_prev_pad = zero_pad(A_prev, pad)
65 for i in range(m):
---> 66 a_prev_pad = A_prev_pad[i,n_H_prev,n_W_prev,n_C_prev]
67 for h in range(n_H-f):
68 vert_start = h*stride
IndexError: index 4 is out of bounds for axis 3 with size 4type or paste code here