paddlespeech.s2t.io.converter module

class paddlespeech.s2t.io.converter.CustomConverter(subsampling_factor=1, dtype=<class 'numpy.float32'>, load_aux_input=False, load_aux_output=False)[source]

Bases: object

Custom batch converter.

Args:

subsampling_factor (int): The subsampling factor. dtype (np.dtype): Data type to convert.

Methods

__call__(batch)

Transform a batch and send it to a device.