espnet2.gan_codec.shared.encoder.seanet.pad1d
Less than 1 minute
espnet2.gan_codec.shared.encoder.seanet.pad1d
espnet2.gan_codec.shared.encoder.seanet.pad1d(x: Tensor, paddings: Tuple[int, int], mode: str = 'zero', value: float = 0.0)
Tiny wrapper around F.pad, just to allow for reflect padding on small input. If this is the case, we insert extra 0 padding to the right before the reflection happen.