C5W1A1_Ex1 RNN cell forward prop

I am getting error in assignment 1 while implementing following code. Its saying dimensional mismatch.

given dimension are:
xt_tmp = np.random.randn(3, 10)
a_prev_tmp = np.random.randn(5, 10)
parameters_tmp[‘Waa’] = np.random.randn(5, 5)
parameters_tmp[‘Wax’] = np.random.randn(5, 3)
parameters_tmp[‘Wya’] = np.random.randn(2, 5)
parameters_tmp[‘ba’] = np.random.randn(5, 1)
parameters_tmp[‘by’] = np.random.randn(2, 1)

Hello Imran,

Kindly select the specialisation, course and week appropriately for getting a better and faster response.

Kindly do not share any part of your code on the post publicly as it is against community guidelines ( remove the graded cell code) and post only error log which you encountered.

There is an error in your yt_pred code, your weight matrix mentioned in that code is incorrect. do that correction. if you still get an error, let us know.


I will edit my query.