快捷方式

ComputeDeltas

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

計算張量(通常是譜圖)的 Delta 係數。

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

有關更多詳細資訊,請參閱 torchaudio.functional.compute_deltas

引數:
  • win_length (int, 可選) – 用於計算 Delta 的視窗長度。(預設值:5

  • mode (str, 可選) – 傳遞給填充的模式引數。(預設值:"replicate"

forward(specgram: Tensor) Tensor[原始碼]
引數:

specgram (Tensor) – 維度為 (…, 頻率, 時間) 的音訊張量。

返回:

維度為 (…, 頻率, 時間) 的 Delta 張量。

返回型別:

Tensor

文件

查閱 PyTorch 開發者綜合文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得解答

檢視資源