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.


curso-r/torchaudio documentation built on May 4, 2023, 2:27 a.m.