The python notebook includes examples of using torch.nn.LSTM
for both unidirectional and bidirectional configurations. Examples of using torch.nn.utils.rnn.PackedSequence
for handling variable input sequence lengths in the model are also included.
Colah blog: Understanding LSTM Networks
Pytorch tutorial on LSTM: Sequence Models and Long Short-Term Memory Networks