1. 15 May, 2022 1 commit
    • John Reese's avatar
      [codemod][usort] apply import merging for fbcode (8 of 11) · d62875cc
      John Reese authored
      Summary:
      Applies new import merging and sorting from µsort v1.0.
      
      When merging imports, µsort will make a best-effort to move associated
      comments to match merged elements, but there are known limitations due to
      the diynamic nature of Python and developer tooling. These changes should
      not produce any dangerous runtime changes, but may require touch-ups to
      satisfy linters and other tooling.
      
      Note that µsort uses case-insensitive, lexicographical sorting, which
      results in a different ordering compared to isort. This provides a more
      consistent sorting order, matching the case-insensitive order used when
      sorting import statements by module name, and ensures that "frog", "FROG",
      and "Frog" always sort next to each other.
      
      For details on µsort's sorting and merging semantics, see the user guide:
      https://usort.readthedocs.io/en/stable/guide.html#sorting
      
      Reviewed By: lisroach
      
      Differential Revision: D36402214
      
      fbshipit-source-id: b641bfa9d46242188524d4ae2c44998922a62b4c
      d62875cc
  2. 10 May, 2022 1 commit
  3. 26 Feb, 2022 1 commit
    • Zhaoheng Ni's avatar
      Add apply_beamforming to torchaudio.functional (#2232) · 9c56ffb4
      Zhaoheng Ni authored
      Summary:
      This PR adds ``apply_beamforming`` method to ``torchaudio.functional``.
      The method employs the beamforming weight to the multi-channel noisy spectrum to obtain the single-channel enhanced spectrum.
      The input arguments are the complex-valued beamforming weight Tensor and the multi-channel noisy spectrum.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2232
      
      Reviewed By: mthrok
      
      Differential Revision: D34474561
      
      Pulled By: nateanl
      
      fbshipit-source-id: 2910251a8f111e65375dfb50495b6a415113f06d
      9c56ffb4
  4. 25 Feb, 2022 5 commits
  5. 29 Dec, 2021 1 commit
  6. 23 Dec, 2021 1 commit
  7. 04 Nov, 2021 1 commit
  8. 03 Nov, 2021 1 commit
  9. 28 Oct, 2021 1 commit
  10. 13 Oct, 2021 1 commit
  11. 20 Aug, 2021 1 commit
  12. 19 Aug, 2021 1 commit
  13. 10 Aug, 2021 1 commit
  14. 02 Aug, 2021 1 commit
  15. 21 Jul, 2021 1 commit
  16. 16 Jul, 2021 1 commit
  17. 25 Jun, 2021 1 commit
  18. 04 Jun, 2021 1 commit
  19. 01 Jun, 2021 1 commit
  20. 22 May, 2021 1 commit
    • parmeet's avatar
      fbsync (#1524) · ae9560da
      parmeet authored
      * Remove `class FunctionalComplex` header accidentally re-introduced in #1490 
      ae9560da
  21. 11 May, 2021 1 commit
  22. 06 May, 2021 1 commit
  23. 03 May, 2021 1 commit
  24. 26 Apr, 2021 1 commit
  25. 19 Apr, 2021 1 commit
  26. 06 Apr, 2021 1 commit
    • steveplazafb's avatar
      Refactors functional test (#1435) · e9726f08
      steveplazafb authored
      Merges lfilter and spectrogram classes together in the common implementation and modifies the cpu and gpu test definitions accordingly
      e9726f08
  27. 02 Apr, 2021 1 commit
    • moto's avatar
      Make `F.phase_vocoder` and `T.TimeStretch` handle complex dtype (#1410) · 0433b7aa
      moto authored
      1. `F.phase_vocoder` accepts Tensor with complex dtype.
          * The implementation path has been updated from #758 so that they share the same code path by internally converting the input Tensor to complex dtype and performing all the operation on top of it.
          * Adopted `torch.polar` for simpler Tensor generation from magnitude and angle.
      2. Updated tests
          * librosa compatibility test for complex dtype and pseudo complex dtype
              * Extracted the output shape check test and moved it to functional so that it will be tested on all the combination of `{CPU | CUDA} x {complex64 | complex128}`
          * TorchScript compatibility test for `F.phase_vocoder` and `T.TimeStretch`.
          * batch consistency test for `T.TimeStretch`.
      0433b7aa
  28. 15 Mar, 2021 1 commit
  29. 05 Mar, 2021 1 commit
  30. 06 Jan, 2021 1 commit
  31. 05 Aug, 2020 1 commit
    • moto's avatar
      [CI] Run unit test with non-editable installation (#845) · 9ba02d5b
      moto authored
      We have been running unit test with editable installation. (i.e. `python setup.py develop`), with which we missed issues like #842. 
      
      This CC makes installation in CI non-editable, and change test directory structure so that the source code will not shadow the installed version of `torchaudio`. With simple `pytest test`, `pytest` modifies `sys.path` and prepend checked out repository, which shadows the installed version.
      
      To remedy this, the whole test suites has been moved from `./test` to `./test/torchaudio_unittest`. This adds nice module structure to our test code and we can do absolute import in each test module, which makes it possible again to run test with `python -m unittest torchaudio_unittest/XXX.py`
      
      This change does not affect the regular development process (`python setup.py develop` && `pytest test`)
      9ba02d5b
  32. 11 Jun, 2020 1 commit
    • moto's avatar
      Get rid of dynamic test suite generation (#716) · 08217121
      moto authored
      `type` used in `common_utils` generates test class definition in `common_utils` and
      this modifies the module state after it's imported. This is anti-pattern.
      This PR get rid of the related utility functions and define test suite manually.
      08217121