[BC-Breaking] Default to native complex type when returning raw spect… (#1549)
* [BC-Breaking] Default to native complex type when returning raw spectrogram Part of https://github.com/pytorch/audio/issues/1337 . - This code changes the return type of spectrogram to be native complex dtype, when (and only when) returning raw (complex-valued) spectrogram. - Change `return_complex=False` to `return_complex=True` in spectrogram ops. - `return_complex` is only effective when `power` is `None`. It is ignored for cases where `power` is not `None`. Because the returned Tensor is power spectrogram, which is real-valued Tensors.
Showing
Please register or sign in to comment