classycamel:

I am wondering how smth’s answer from here hidden states for all timesteps fits in.


I think the author wanted the “cell states” as well as the “hidden states”. nn.LSTM only returns the cell states for the last timestep.
The vocab is rather confusing. The “hidden states” are not truly hidden since they are output to the next layer as well as being used as input for the next timestep. The “cell states” are truly hidden, since they are used only by the LSTM as input for the next timestep.