torch.nn.utils.PadSequenceOptions
export interface PadSequenceOptions {
/** If true, output is B x T x *, otherwise T x B x * (default: false) */
batch_first?: boolean;
/** Value for padded elements (default: 0.0) */
padding_value?: number;
/** Which side to pad: 'right' or 'left' (default: 'right') */
padding_side?: 'right' | 'left';
}batch_first(boolean)optional- – If true, output is B x T x *, otherwise T x B x * (default: false)
padding_value(number)optional- – Value for padded elements (default: 0.0)
padding_side('right' | 'left')optional- – Which side to pad: 'right' or 'left' (default: 'right')
Options for pad_sequence