sequences: (list[Tensor]): A list of sequences of decreasing length.
enforce_sorted: (bool, optional): if TRUE, checks that the input contains sequences sorted by length in a decreasing order. If FALSE, this condition is not checked. Default: TRUE.
Returns
a PackedSequence object
Details
For unsorted sequences, use enforce_sorted = FALSE. If enforce_sorted
is TRUE, the sequences should be sorted in the order of decreasing length. enforce_sorted = TRUE is only necessary for ONNX export.