Course4: week1 exercise5 -conv_backward, mismatch value for dA_mean and dW_mean

Help! I got the value mismatch error and I can’t figure out why :smiling_face_with_tear:

Moderator edit, code removed.

The comment in the code says

# select ith training example from A_prev_pad and dA_prev_pad

but your code selects from A_prev_pad and…oops

1 Like

Omg, such a silly mistake. Thanks for spotting that for me!! It now works just fine

1 Like

For the record, you’re not supposed to paste code into the forum threads regardless of whether it is working or not. A moderator will likely remove it. Or you can. The code that leaks through around the error message is OK, but sharing your function implementation is a faux pas.

1 Like