Course 5 Week1 Assignment 4

Hi there,

I am having trouble with Exercise 4. Even though my code for Ex3 gets passed, I keep getting a ValueError referring to lstm_cell_forward function.

The Error: ValueError: operands could not be broadcast together with shapes (5,10) (10,10)

and references to this line:
in lstm_cell_forward(xt, a_prev, c_prev, parameters)
56 it = sigmoid(, concat) + bi)
57 cct = np.tanh(, concat) + bc)
—> 58 c_next = np.multiply(ft, c_prev) + np.multiply(it, cct)

Can anyone help me identify my mistake?

Hi raviswanath,

It looks like there is a problem with the dimensions of the parameters you pass to lstm_cell_forward from your lstm_forward function.

Could you send me a private message with the code of your lstm_forward function so I can have a look?