Skip to content

Pad

Bases: BaseModule

Right-pad the last dimension of a tensor with zeros.

Parameters:

Name Type Description Default
pad_length int

Number of zeros appended to the last dimension.

required