Rnn_cell_backward

I am not getting correct output for this function. I am using
following line to calculate dtanh

{Moderator Edit: Solution Code Removed}

gradients[“dxt”][1][2] = -1.0171023380072393
gradients[“dxt”].shape = (3, 10)
gradients[“da_prev”][2][3] = -0.15784531210210753
gradients[“da_prev”].shape = (5, 10)
gradients[“dWax”][3][1] = 0.26938808588528623
gradients[“dWax”].shape = (5, 3)
gradients[“dWaa”][1][2] = 1.0909404950220543
gradients[“dWaa”].shape = (5, 5)
gradients[“dba”][4] = [0.00394918]
gradients[“dba”].shape = (5, 1)

First, you posted this in Convolutional Neural Networks (DLS course 4) but your query belongs to DLS course 5. Kindly change the category as instructed here.

So, what is sq?

Hint: In a notebook, it is said that “\tanh(W_{ax}x^{\langle t \rangle}+W_{aa} a^{\langle t-1 \rangle} + b_{a}) was computed and saved as a_next in the forward pass.”

Also, note that sharing your code is not allowed. Just sharing your full error will suffice.

Thanks, I am able to figure out what is the issue

I am glad you did :+1: :+1: :+1: