espnet2.gan_codec.shared.encoder.seanet_2d.pad2d
Less than 1 minute
espnet2.gan_codec.shared.encoder.seanet_2d.pad2d
espnet2.gan_codec.shared.encoder.seanet_2d.pad2d(x: Tensor, paddings: Tuple[Tuple[int, int], 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.