Skip to content

Commit

Permalink
Fix for Pytorch warning message
Browse files Browse the repository at this point in the history
Warning:
(...)/torch/functional.py:650: UserWarning: stft with return_complex=False is deprecated. In a future pytorch release, stft will return complex tensors for all inputs, and return_complex=False will raise an error.
  • Loading branch information
r3dacted42 committed Nov 27, 2023
1 parent 11ec9f7 commit 4a1a8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/utils/audio/torch_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __call__(self, x):
pad_mode="reflect", # compatible with audio.py
normalized=self.normalized,
onesided=True,
return_complex=False,
return_complex=True,
)
M = o[:, :, :, 0]
P = o[:, :, :, 1]
Expand Down

0 comments on commit 4a1a8f8

Please sign in to comment.