thanks for your reply . I tried your practice. Certainly, I can get all the memory cell vector by using a loop, but the results are different between using nn.LSTM directly and using a loop of LSTM . I am confused.