快捷方式

ComputeDeltas

class torchaudio.transforms.ComputeDeltas(win_length: int = 5, mode: str = 'replicate')[source]

计算张量的 delta 系数,通常是频谱图。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript

有关更多详细信息,请参阅 torchaudio.functional.compute_deltas

参数
  • win_length (int, optional) – 用于计算 delta 的窗口长度。(默认为:5)

  • mode (str, optional) – 传递给 padding 的模式参数。(默认为:"replicate")

forward(specgram: Tensor) Tensor[source]
参数

specgram (Tensor) – 形状为 (..., freq, time) 的音频张量。

返回

形状为 (..., freq, time) 的 delta 张量。

返回类型

张量

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源