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