torch.nn.utils.PadPackedSequenceOptions
export interface PadPackedSequenceOptions {
/** If true, output will be in B x T x * format (default: false) */
batch_first?: boolean;
/** Value for padded elements (default: 0.0) */
padding_value?: number;
/** If specified, output will be padded to this length. If not specified, uses the length of the longest sequence. */
total_length?: number | null;
}batch_first(boolean)optional- – If true, output will be in B x T x * format (default: false)
padding_value(number)optional- – Value for padded elements (default: 0.0)
total_length(number | null)optional- – If specified, output will be padded to this length. If not specified, uses the length of the longest sequence.
Options for pad_packed_sequence