paddlespeech.s2t.io.converter 模块

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

基础: object

自定义批量转换器。

Args:

subsampling_factor (int):子采样因子。
dtype (np.dtype):要转换的数据类型。

方法

__call__(batch)

转化一个批次并将其发送到一个设备。