C2W1 Gradient Checking cannot get the difference to be less than threshold

{moderator edit - solution code removed}

Hi I am unable to get the difference less than 2e-7. I am getting that I have a mistake in back prop :
There is a mistake in the backward propagation! difference = 0.2850931567761623

What does the output of the test say for that function? Note that there are two possible correct answers, depending on whether you have or have not fixed the intentional errors they gave you in the back prop logic.

Thanks a lot!
I realized about it just after posting.

Great! I was going to say that your code looked fine to me, so I figured that was the issue. :nerd_face:

BTW we aren’t supposed to post solution code in a public way, but no harm done: I just edited your post to hide the code.