Skip to content

Commit

Permalink
[tests] provide return_complex to torch.stft (#23)
Browse files Browse the repository at this point in the history
As per https://pytorch.org/docs/stable/generated/torch.stft.html,
providing return_complex is now mandatory.
  • Loading branch information
GaetanLepage authored Dec 2, 2024
1 parent f3142cb commit 74a13c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/torch_stft_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def test_torch_stft(
pad_mode=pad_mode,
normalized=normalized,
onesided=True,
return_complex=True,
)

spec_asteroid = stft(wav)
Expand All @@ -145,6 +146,7 @@ def test_torch_stft(
normalized=normalized,
onesided=True,
length=output_len,
return_complex=True,
)

except RuntimeError:
Expand Down

0 comments on commit 74a13c6

Please sign in to comment.