stft: remove non-center overload and python functional wrapper

Pull Request resolved: https://github.com/pytorch/pytorch/pull/73434

Approved by: https://github.com/anjali411
This commit is contained in:
Peter Bell
2022-04-22 17:34:59 +01:00
committed by PyTorch MergeBot
parent cb37e7a080
commit 6b7d89c4f1
16 changed files with 186 additions and 177 deletions

View File

@ -4752,16 +4752,21 @@ See :func:`torch.dsplit`
""")
add_docstr_all('stft',
"stft(n_fft, hop_length=None, win_length=None, window=None, center=True, "
"pad_mode='reflect', normalized=False, onesided=None, return_complex=None) -> Tensor"
r"""
stft(frame_length, hop, fft_size=None, return_onesided=True, window=None, pad_end=0) -> Tensor
See :func:`torch.stft`
.. warning::
This function changed signature at version 0.4.1. Calling with
the previous signature may cause error or return incorrect result.
""")
add_docstr_all('istft',
"istft(input, n_fft, hop_length=None, win_length=None, window=None, center=True, "
"normalized=False, onesided=None, length=None, return_complex=False) -> Tensor"
r"""
istft(n_fft, hop_length=None, win_length=None, window=None,
center=True, normalized=False, onesided=True, length=None) -> Tensor
See :func:`torch.istft`
""")