快捷方式

torchaudio.functional.gain

torchaudio.functional.gain(waveform: Tensor, gain_db: float = 1.0) Tensor[原始碼]

對整個波形應用放大或衰減。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
引數:
  • waveform (Tensor) – 維度為 (…, time) 的音訊張量。

  • gain_db (float, 可選) 以分貝 (dB) 為單位的增益調整 – 1.0)。

返回:

透過 gain_db 放大的整個波形。

返回型別:

Tensor

文件

查閱 PyTorch 的全面開發者文件

檢視文件

教程

獲取適合初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源