torch.stft
torch.stft(input, n_fft, hop_length=None, win_length=None, window=None, center=True, pad_mode='reflect', normalized=False, onesided=None, return_complex=None)
Short-time Fourier transform (STFT).
Warning:
 From version 1.8.0, "return_complex" must always be given
 explicitly for real inputs and *return_complex=False* has been
 deprecated. Strongly prefer *return_complex=True* as in a future
 pytorch release, this function will only return complex
 tensors.Note that "torch.view_as_real()" can be used to recover a
 real tensor with an extra last dimension for real and imaginary
 components.

The STFT computes the Fourier transform of short overlapping
   windows of the input. This giving frequency components of the
   signal as they change over time. The interface of this function is
   modeled after (but not a drop-in replacement for) librosa stft
   function.
Ignoring the optional batch dimension, this method computes the