Confusion regarding PyTorch LSTMs compared to Keras stateful LSTM

@ deividbotina I am not sure of Keras’ internal implementation; but in terms of behavior, your code looks reasonable to me. And similar to Keras’ behavior.

1 Like