espnet.asr.pytorch_backend.asr.CustomConverterMulEnc
Less than 1 minute
espnet.asr.pytorch_backend.asr.CustomConverterMulEnc
class espnet.asr.pytorch_backend.asr.CustomConverterMulEnc(subsampling_factors=[1, 1], dtype=torch.float32)
Bases: object
Custom batch converter for Pytorch in multi-encoder case.
- Parameters:
- subsampling_factors (list) – List of subsampling factors for each encoder.
- dtype (torch.dtype) – Data type to convert.
Initialize the converter.