espnet2.asr_transducer.encoder.validation.validate_architecture
Less than 1 minute
espnet2.asr_transducer.encoder.validation.validate_architecture
espnet2.asr_transducer.encoder.validation.validate_architecture(input_conf: Dict[str, Any], body_conf: List[Dict[str, Any]], input_size: int) → Tuple[int, int]
Validate specified architecture is valid.
- Parameters:
- input_conf – Encoder input block configuration.
- body_conf – Encoder body blocks configuration.
- input_size – Encoder input size.
- Returns: Encoder input block output size. : Encoder body block output size.
- Return type: input_block_osize