torch.nn.utils.PackedSequenceOptions
export interface PackedSequenceOptions {
/** Tensor containing indices used to sort sequences by length */
sorted_indices?: Tensor | null;
/** Tensor containing indices to restore original order */
unsorted_indices?: Tensor | null;
/** Internal cached array of batch sizes for efficient access */
_batch_sizes_array?: number[];
}sorted_indices(Tensor | null)optional- – Tensor containing indices used to sort sequences by length
unsorted_indices(Tensor | null)optional- – Tensor containing indices to restore original order
_batch_sizes_array(number[])optional- – Internal cached array of batch sizes for efficient access
Options for PackedSequence constructor