espnet.asr.pytorch_backend.asr_mix.CustomConverter
Less than 1 minute
espnet.asr.pytorch_backend.asr_mix.CustomConverter
class espnet.asr.pytorch_backend.asr_mix.CustomConverter(subsampling_factor=1, dtype=torch.float32, num_spkrs=2)
Bases: object
Custom batch converter for Pytorch.
- Parameters:
- subsampling_factor (int) – The subsampling factor.
- dtype (torch.dtype) – Data type to convert.
Initialize the converter.