{mentor edit: code removed - not allowed by the Honor Code}
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)
72 print(‘cBBB’,biases.shape)
73 #print(a_slice_prev[:,:,4].shape)
—> 74 Z[i, h, w, c] = conv_single_step(a_slice_prev, weights, biases)
75 # YOUR CODE STARTS HERE
76
in conv_single_step(a_slice_prev, W, b)
23 # Z = None
24 # YOUR CODE STARTS HERE
—> 25 s = a_slice_prev *W
26 Z =np.sum(s)
27 Z= Z+float(b)
ValueError: operands could not be broadcast together with shapes (3,3) (3,3,4)
Help!!