Hi, that error seems to indicate that the function linear_backward is returning just two values when you are expecting to receive 3. It is a bit odd error as in exercise 7 you are also using the function:
in linear_activation_backward(dA, cache, activation)
35
36 dZ = relu_backward(dA, activation_cache)
—> 37 dA_prev, dW, db = linear_backward(dZ, cache)
38
39 # YOUR CODE ENDS HERE
in linear_backward(dZ, cache)
14 db – Gradient of the cost with respect to b (current layer l), same shape as b
15 “”"
—> 16 A_prev, W, b = cache
17 m = A_prev.shape[1]
18
ValueError: not enough values to unpack (expected 3, got 2)
Sure. I guess that I’m using interchangeably “cache” in relu_backward and in linear_backward when they are not. One of cache has 3 components and the other 2. However, I don’t know how .to feed the linear_backward function (can’t find the corresponding cache in the exercise).