Add Inverse Short Time Fourier Transform in ATen native#35569
Add Inverse Short Time Fourier Transform in ATen native#35569mthrok wants to merge 8 commits intopytorch:masterfrom
Conversation
💊 Build failures summary and remediationsAs of commit de4d2e9 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 101 times. |
fed4286 to
3016752
Compare
bb7c8b3 to
0c444a1
Compare
|
FYI: There is a ongoing discussion on ways to extend |
There was a problem hiding this comment.
Overall, LGTM :) see comments below
- Batch packing/unpacking is performed in Python. ATen implementation expects 4D input tensor.
I'm assuming you did so to mirror the stft implementation? This means that the libtorch implementation will behave differently from the python implementation, right?
- The way
hop_lengthis initialized in the same way asstftimplementation. The Torchaudio's version tried to mimic the same behavior but slightly different.
The initialization in ATen seems fine to me. Can you clarify if it changes something for the user in python?
Let's leave these changes for a follow-up PR. |
vincentqb
left a comment
There was a problem hiding this comment.
All the tests are green!
LGTM :)
|
@mthrok -- can you import the PR so that the internal tests run too? |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@mthrok has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
ISTFT got into PyTorch core. See pytorch/pytorch#35569
Summary: Ported `torchaudio`'s implementation (test, and documentation as well) to ATen. Note - Batch packing/unpacking is performed in Python. ATen implementation expects 4D input tensor. - The way `hop_length` is initialized in the same way as `stft` implementation. [The Torchaudio's version tried to mimic the same behavior but slightly different](https://github.com/pytorch/audio/blob/7da61a4beeec7b7ff9ff5f1532b2adf99220a9b1/torchaudio/functional.py#L152-L157). Closes pytorch#34827 Relates pytorch#3775 Pull Request resolved: pytorch#35569 Differential Revision: D21178090 Pulled By: mthrok fbshipit-source-id: 2701a8b241a36a6fb1b740c2fb2b07cb938185d4
Ported
torchaudio's implementation (test, and documentation as well) to ATen.Note
hop_lengthis initialized in the same way asstftimplementation. The Torchaudio's version tried to mimic the same behavior but slightly different.Closes #34827
Relates #3775