pytorch
09475212 - Update stft tests to support latest librosa (#72833)

Commit
3 years ago
Update stft tests to support latest librosa (#72833) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/72833 Closes #72550 The latest version of librosa breaks backward compatibility in two ways: - Everything except the input tensor is now keyword-only - `pad_mode` now defaults to `'constant'` for zero-padding https://librosa.org/doc/latest/generated/librosa.stft.html This changes the test to match the old behaior even when using the new library and updates the documentation to explicitly say that `torch.stft` doesn't exactly follow the librosa API. This was always true (`torch.stft` it has new arguments, a different default window and supports complex input), but it can't hurt to be explicit. Test Plan: Imported from OSS Reviewed By: ngimel Differential Revision: D34386897 Pulled By: mruberry fbshipit-source-id: 6adc23f48fcb368dacf70602e9197726d6b7e0c1 (cherry picked from commit b5c5ed41963022c9f26467279ed098fb905fa00a)
Author
Committer
Parents
Loading