Commit bd5dde4
[export] fix stft decomp and making it consistent with cpp impl. (pytorch#149232)
Summary: We change the fake impl of stft to follow more closely with its cpp implementation [here](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/SpectralOps.cpp#L951-L963)
where " n_frames = 1 + (len - n_fft) / hop_length;" is also an integer division.
Test Plan: Existing tests and buck2 build --flagfile fbcode//mode/dev fbcode//executorch/examples/models/fb/llama4:speech_transform.pte
Differential Revision: D71209142
edit: we kept the original path un-changed.
Pull Request resolved: pytorch#149232
Approved by: https://github.com/jackzhxng1 parent 689dc60 commit bd5dde4
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3451 | 3451 | | |
3452 | 3452 | | |
3453 | 3453 | | |
3454 | | - | |
3455 | 3454 | | |
3456 | 3455 | | |
3457 | 3456 | | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
3458 | 3460 | | |
3459 | 3461 | | |
3460 | 3462 | | |
| |||
0 commit comments