espnet.nets.pytorch_backend.transducer.blocks.build_conformer_block
Less than 1 minute
espnet.nets.pytorch_backend.transducer.blocks.build_conformer_block
espnet.nets.pytorch_backend.transducer.blocks.build_conformer_block(block: Dict[str, Any], self_attn_class: str, pw_layer_type: str, pw_activation_type: str, conv_mod_activation_type: str) → EncoderLayer
Build function for conformer block.
- Parameters:
- block – Conformer block parameters.
- self_attn_type – Self-attention module type.
- pw_layer_type – Positionwise layer type.
- pw_activation_type – Positionwise activation type.
- conv_mod_activation_type – Convolutional module activation type.
- Returns: Function to create conformer (encoder) block.