espnet2.diar.layers.tcn_nomask.ChannelwiseLayerNorm
Less than 1 minute
espnet2.diar.layers.tcn_nomask.ChannelwiseLayerNorm
class espnet2.diar.layers.tcn_nomask.ChannelwiseLayerNorm(channel_size)
Bases: Module
Channel-wise Layer Normalization (cLN).
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(y)
Forward.
- Parameters:y – [M, N, K], M is batch size, N is channel size, K is length
- Returns: [M, N, K]
- Return type: cLN_y
reset_parameters()