Output of time sequence example

Hi everyone,

I have a short and possibly really stupid question regarding the official time sequence example

I don’t understand why c_t is stored as the output of the LSTMCell? Comparing with elementary introduction to LSTM cells, for example http://colah.github.io/posts/2015-08-Understanding-LSTMs/, it seems to me that h_t corresponds to the output of the cell?

Thank you very much!

c_t is the output of the cell. h_t is the hidden state of the cell.

Many thanks for your reply!

Doesn’t this contradict the docs - see example (and formulae which suggests that c_t is cell state)?

http://pytorch.org/docs/nn.html?highlight=lstmcell#torch.nn.LSTMCell

sorry for misleading you earlier. h_t is the output of the cell, c_t is the internal state of the LSTMCell. The example is wrong. We’ll fix it.