espnet2.asr.state_spaces.pool.DownSpectralPool
espnet2.asr.state_spaces.pool.DownSpectralPool
class espnet2.asr.state_spaces.pool.DownSpectralPool(d_input, stride=1, expand=1, transposed=True)
Bases: SequenceModule
Initializes internal Module state, shared by both nn.Module and ScriptModule.
property d_output
Output dimension of model.
This attribute is required for all SequenceModule instantiations. It is used by the rest of the pipeline (e.g. model backbone, decoder) to track the internal shapes of the full model.
forward(x)
Forward pass.
x: (B, L…, D)
step(x, state, **kwargs)
Step the model recurrently for one step of the input sequence.
For example, this should correspond to unrolling an RNN for one step. If the forward pass has signature (B, L, H1) -> (B, L, H2), this method should generally have signature (B, H1) -> (B, H2) with an optional recurrent state.