Week 3 Exercise 6 -backward propagation

There is a little different between my output and the expected output.
My output:


The expected output:

I think it may be caused by rounding, however I cannot pass the assert code of that:

189     assert np.allclose(output["dW1"], expected_output["dW1"]), "Wrong values for dW1"
190     assert np.allclose(output["db1"], expected_output["db1"]), "Wrong values for db1"

And this is my code. I don’t know what’s wrong with it.

[code removed - moderator]

dZ1 is incorrect. Please remove your from the thread.

1 Like

Got it, thanks a lot.