Skip to content

Commit ae0c4c4

Browse files
peterbell10pytorchmergebot
authored andcommitted
Update version numbers in torch.{stft,istft} deprecations (pytorch#91761)
Since there won't be a 1.14 release, these need to be updated. Pull Request resolved: pytorch#91761 Approved by: https://github.com/lezcano
1 parent 2a64365 commit ae0c4c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch/functional.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,11 @@ def stft(input: Tensor, n_fft: int, hop_length: Optional[int] = None,
612612
a real tensor with an extra last dimension for the real and
613613
imaginary components.
614614
615-
.. versionchanged:: 1.14.0
615+
.. versionchanged:: 2.0
616616
``return_complex`` is now a required argument for real inputs,
617617
as the default is being transitioned to ``True``.
618618
619-
.. deprecated:: 1.14.0
619+
.. deprecated:: 2.0
620620
``return_complex=False`` is deprecated, instead use ``return_complex=True``
621621
Note that calling :func:`torch.view_as_real` on the output will
622622
recover the deprecated output format.
@@ -682,7 +682,7 @@ def stft(input: Tensor, n_fft: int, hop_length: Optional[int] = None,
682682
output. That is a complex tensor of shape (``channel``, ``fft_size``, ``n_frame``),
683683
where the ``channel`` dimension is optional.
684684
685-
.. versionchanged:: 1.14.0
685+
.. versionchanged:: 2.0
686686
Real datatype inputs are no longer supported. Input must now have a
687687
complex datatype, as returned by ``stft(..., return_complex=True)``.
688688
n_fft (int): Size of Fourier transform

0 commit comments

Comments
 (0)