DLS 5 - Week 1 - A1 - Build you own RNN. Getting wrong output

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:

  1. Inside def rnn_backward(da, caches):, gradients = ... needs to be fixed.
  2. One you fix the above bug, fixing gradients = in def 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.