I have a question about processing the variable-length sequence using pytorch LSTM.
When using torch.nn.utils.rnn.PackedSequence to process the variable-length sequence, we should sort sequences by length first.
However, how can I do if I do not want to sort sequences by length when processing the variable-length sequence in pytorch??
Thank you for your time.
I wonder that are there pytorch examples that do not need to sort sequences by length when inputting to LSTM.
Just like as follows.
a 0 0 0 0
a b 0 0 0
a b c 0 0
a b 0 0 0
a 0 0 0 0