espnet2.enh.layers.skim.SegLSTM
Less than 1 minute
espnet2.enh.layers.skim.SegLSTM
class espnet2.enh.layers.skim.SegLSTM(input_size, hidden_size, dropout=0.0, bidirectional=False, norm_type='cLN')
Bases: Module
the Seg-LSTM of SkiM
- Parameters:
- input_size – int, dimension of the input feature. The input should have shape (batch, seq_len, input_size).
- hidden_size – int, dimension of the hidden state.
- dropout – float, dropout ratio. Default is 0.
- bidirectional – bool, whether the LSTM layers are bidirectional. Default is False.
- norm_type – gLN, cLN. cLN is for causal implementation.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(input, hc)
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.