Course 4 week 1 assigment 1 exercise 3


ValueError Traceback (most recent call last)
in
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]

in conv_forward(A_prev, W, b, hparameters)
60 # Z[i, h, w, c] = None
61 # YOUR CODE STARTS HERE
—> 62 (m, n_H_prev, n_W_prev, n_C_prev) = A_prev
63 (f, f, n_C_prev, n_C) = W
64

ValueError: not enough values to unpack (expected 4, got 2)

don’t understand why im getting this error and if it actually has to do with this issue or if something else is wrong. didn’t edit any other code and all tests were passed in exercises before this!

That line that is “throwing” doesn’t make any sense as written. This is not about the contents of A_prev, right? It’s the shape that you’re interested in.

Looks like the same mistake on the next line as well.