functional_db_to_amplitude: DB to Amplitude (functional)

functional_db_to_amplitudeR Documentation

DB to Amplitude (functional)

Description

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

Usage

functional_db_to_amplitude(x, ref, power)

Arguments

x

(Tensor): Input tensor before being converted to power/amplitude scale.

ref

(float): Reference which the output will be scaled by. (Default: 1.0)

power

(float): If power equals 1, will compute DB to power. If 0.5, will compute DB to amplitude. (Default: 1.0)

Value

tensor: Output tensor in power/amplitude scale.


torchaudio documentation built on Feb. 16, 2023, 9:41 p.m.