VGGishBundle.VGGish¶
- class torchaudio.prototype.pipelines.VGGishBundle.VGGish¶
已弃用
警告
此类已从 2.8 版本开始弃用。它将在 2.9 版本中移除。此弃用是转型 TorchAudio 进入维护阶段的大规模重构工作的一部分。更多信息请参阅 https://github.com/pytorch/audio/issues/3902。
VGGish 模型实现 [Hershey et al., 2017]。
方法¶
forward¶
- VGGish.forward(input: Tensor) Tensor ¶
- 参数
input (torch.Tensor) – 谱图批次,形状为 (n_example, 1, n_frame, 64)。
- 返回
模型输出,形状为 (n_example, 128)。
- 返回类型