espnet2.legacy.nets.pytorch_backend.transducer.blocks.build_conformer_block
Less than 1 minute
espnet2.legacy.nets.pytorch_backend.transducer.blocks.build_conformer_block
espnet2.legacy.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.
