espnet2.asr.encoder.beats_encoder.SamePad
Less than 1 minute
espnet2.asr.encoder.beats_encoder.SamePad
class espnet2.asr.encoder.beats_encoder.SamePad(kernel_size, causal=False)
Bases: Module
Change input tensor shape according to the kernel size and type of LM
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x)
Forward pass