Pytorch lstmcell issue regarding usage of lstmcell instead of into lstm

Well, nn.LSTM processes the whole input sequence, whole nn.LSTMCell only a single time step. So you will need a loop over your sequence. The docs actually provide an example.

Apart from that, I’m rather sure that your use of view() messes up your data; have a look here.