I think this thread covers your point.
What you needed is;
LSTM_cell = LSTM(n_a, return_state = True)
to reset incorrect state caused by debugging, error or any others.
I think this thread covers your point.
What you needed is;
LSTM_cell = LSTM(n_a, return_state = True)
to reset incorrect state caused by debugging, error or any others.