PackedSequence
class torch.nn.utils.rnn.PackedSequence(data, batch_sizes=None, sorted_indices=None, unsorted_indices=None)
Holds the data and list of "batch_sizes" of a packed sequence.
All RNN modules accept packed sequences as inputs.
Note:
 Instances of this class should never be created manually. They
 are meant to be instantiated by functions like
 "pack_padded_sequence()".Batch sizes represent the number
 elements at each sequence step in the batch, not the varying
 sequence lengths passed to "pack_padded_sequence()".  For
 instance, given data "abc" and "x" the "PackedSequence" would
 contain data "axbc" with "batch_sizes=[2,1,1]".

Variables:
      * data (Tensor) -- Tensor containing packed sequence
  * **batch_sizes** (*Tensor*) -- Tensor of integers holding
    information about the batch size at each sequence step

  * **sorted_indices** (*Tensor**, **optional*) -- Tensor of
