espnet.nets.pytorch_backend.transducer.blocks.verify_block_arguments
Less than 1 minute
espnet.nets.pytorch_backend.transducer.blocks.verify_block_arguments
espnet.nets.pytorch_backend.transducer.blocks.verify_block_arguments(net_part: str, block: Dict[str, Any], num_block: int) → Tuple[int, int]
Verify block arguments are valid.
- Parameters:
- net_part – Network part, either ‘encoder’ or ‘decoder’.
- block – Block parameters.
- num_block – Block ID.
- Returns: Input and output dimension of the block.
- Return type: block_io