espnet2.uasr.discriminator.conv_discriminator.ConvDiscriminator
espnet2.uasr.discriminator.conv_discriminator.ConvDiscriminator
class espnet2.uasr.discriminator.conv_discriminator.ConvDiscriminator(input_dim: int, cfg: Dict | None = None, conv_channels: int = 384, conv_kernel: int = 8, conv_dilation: int = 1, conv_depth: int = 2, linear_emb: str2bool = False, causal: str2bool = True, max_pool: str2bool = False, act_after_linear: str2bool = False, dropout: float = 0.0, spectral_norm: str2bool = False, weight_norm: str2bool = False)
Bases: AbsDiscriminator
convolutional discriminator for UASR.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x: Tensor, padding_mask: Tensor | None)
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.