functional_magphase: Magnitude and Phase (functional)

functional_magphaseR Documentation

Magnitude and Phase (functional)

Description

Separate a complex-valued spectrogram with shape ⁠(.., 2)⁠ into its magnitude and phase.

Usage

functional_magphase(complex_tensor, power = 1)

Arguments

complex_tensor

(Tensor): Tensor shape of ⁠(.., complex=2)⁠

power

(float): Power of the norm. (Default: 1.0)

Value

list(tensor, tensor): The magnitude and phase of the complex tensor


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