Hi, can someone help me with this error:
ValueError Traceback (most recent call last)
in
6 “stride”: 2}
7
----> 8 Z, cache_conv = conv_forward(A_prev, W, b, hparameters)
9 print(“Z’s mean =\n”, np.mean(Z))
10 print(“Z[0,2,1] =\n”, Z[0, 2, 1])
in conv_forward(A_prev, W, b, hparameters)
86 biases = b[:, :, :, c]
87 print(a_slice_prev.shape)
—> 88 Z[i, h, w, c] = conv_single_step(a_slice_prev, weights, biases)
89
90
in conv_single_step(a_slice_prev, W, b)
23 # Z = None
24 # YOUR CODE STARTS HERE
—> 25 s = np.multiply(a_slice_prev,W)
26 Z = np.sum(s) + float(b)
27
ValueError: operands could not be broadcast together with shapes (3,3) (3,3,4)
I guess I made mistake in a_slice_prev = a_prev_pad[vert_start:vert_end, horiz_start:horiz_end, stride]
but still stuck