espnet2.enh.layers.tcn.GlobalLayerNorm
Less than 1 minute
espnet2.enh.layers.tcn.GlobalLayerNorm
class espnet2.enh.layers.tcn.GlobalLayerNorm(channel_size, shape='BDT')
Bases: Module
Global Layer Normalization (gLN).
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: gLN_y
reset_parameters()