Solved by Fawaz_Sammani in post #2 
              
              
                Hi @Lewis, 
You can’t really do this, mainly because nn.LSTM only returns the hidden states outputs as it’s output. However, you can implement it using nn.LSTMCell and also implement the pack padded sequence manually. I’ve used this code in one of my very recent projects: 
import torch
from torch im…