LSTM Cell states ordering

What is the ordering of LSTM states?

From what I understand, LSTM’s begin_state returns h_t, c_t (in the conventions of LSTMCell documentation, but what is the ordering?

Is it
[h_t, c_t] = cell.begin_state(...)

or
[c_t, h_t] = cell.begin_state(...)

Hi,

It is the former.i.e

[h_t, c_t] = cell.begin_state(...)

See: https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/gluon/rnn/rnn_cell.py#L548

1 Like