Hi everyone, please I am stuck on the conv_forward
, I have checked various similar problems in the community but I couldn’t solve my issue
My problem is I am confused on how to filter a_prev_pad
, how to set vert_start,vert_end,horiz_start,horiz_end
values
Though I have fully implement every aspects of the function but I am getting this error
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-54-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-53-c70e15ae235b> in conv_forward(A_prev, W, b, hparameters)
106 weights = W[:,:,:,c]
107 biases = b[0,0,0,c]
--> 108 Z[i, h, w, c] = conv_single_step(a_slice_prev, weights, biases)
109
110
<ipython-input-45-5e88d7b4426d> 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)
27 Z = np.float_(b) + Z
ValueError: operands could not be broadcast together with shapes (2,4,3,4) (3,3,4)
I have tried so many things, I have tried adding strides to the vert_start,vert_end,horiz_start,horiz_end
variables but I’m still getting the same error, now I am now confused on what else to do to fix this error, please I have been on it since last week, though I left it and move on to complete the course and now I have completed the course but it’s this assignment that’s preventing me from getting certificate, please help me