espnet2.asr_transducer.encoder.building.build_positional_encoding
Less than 1 minute
espnet2.asr_transducer.encoder.building.build_positional_encoding
espnet2.asr_transducer.encoder.building.build_positional_encoding(block_size: int, configuration: Dict[str, Any]) → RelPositionalEncoding
Build positional encoding block.
- Parameters:
- block_size – Input/output size.
- configuration – Positional encoding configuration.
- Returns: Positional encoding module.