快捷链接

VGGishBundle.VGGishInputProcessor

class torchaudio.prototype.pipelines.VGGishBundle.VGGishInputProcessor

将原始波形转换为示例批次,用作 VGGish 的输入。

方法

__call__

VGGishInputProcessor.__call__(input: Tensor) Tensor
参数:
  • input (torch.Tensor) – 波形,形状为 (T,)

  • sample_rate (int) – 波形的采样率,单位为赫兹。

返回:

要传递给 VGGish 的示例批次,形状为 (n_example, 1, n_frame, 64)

返回类型:

torch.Tensor

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

获取面向初学者和高级开发者的深入教程

查看教程

资源

查找开发资源并获得解答

查看资源