espnet2.asr_transducer.encoder.validation.validate_block_arguments
Less than 1 minute
espnet2.asr_transducer.encoder.validation.validate_block_arguments
espnet2.asr_transducer.encoder.validation.validate_block_arguments(configuration: Dict[str, Any], block_id: int, previous_block_output: int) → Tuple[int, int]
Validate block arguments.
- Parameters:
- configuration – Architecture configuration.
- block_id – Block ID.
- previous_block_output – Previous block output size.
- Returns: Block input size. output_size: Block output size.
- Return type: input_size