In the evaluation cells for rnn_backward and lstm_backward, my code returns wrong gradients. All gradient values are 0 for some reason I could not debug. Please help.
Please click my name and message your notebook as an attachment.
Here are some hints:
- Inside
def rnn_backward(da, caches):
,gradients = ...
needs to be fixed. - One you fix the above bug, fixing
gradients =
indef lstm_backward(da, caches):
is straight forward.
Thanks, I figured it out. I was feeding in the wrong value of the da_next to the function.