Shortcuts

torchaudio.functional.DB_to_amplitude

torchaudio.functional.DB_to_amplitude(x: Tensor, ref: float, power: float) Tensor[source]

Turn a tensor from the decibel scale to the power/amplitude scale.

This feature supports the following devices: CPU, CUDA This API supports the following properties: TorchScript
Parameters:
  • x (Tensor) – Input tensor before being converted to power/amplitude scale.

  • ref (float) – Reference which the output will be scaled by.

  • power (float) – If power equals 1, will compute DB to power. If 0.5, will compute DB to amplitude.

Returns:

Output tensor in power/amplitude scale.

Return type:

Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources