1. 03 Jun, 2020 1 commit
    • jimchen90's avatar
      Add Bass with Biquad (#661) · a466b3c2
      jimchen90 authored
      
      
      * Add bass with biquad
      
      * Update functional.py
      
      Add the normalization coefficients
      
      * Update test_sox_compatibility.py
      
      In test_sox_compatibility.py file, I add two bass tests: one test sets gain = 30, atol = 1e-4, the other sets gain = 40, atol = 1.5e-4. The details can be seen in pytorch#676
      
      * Update torchscript_consistency_impl.py
      
      Add torchscript test
      
      * Add flake8 test
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      a466b3c2
  2. 02 Jun, 2020 1 commit
  3. 27 May, 2020 2 commits
  4. 21 May, 2020 1 commit
  5. 15 May, 2020 1 commit
    • moto's avatar
      Split CUDA and CPU tests of torchscript_consistency (#644) · c960b119
      moto authored
      Currently there is no CUDA device for regular FB's infra, where `torchaudio`'s tests are ran.
      Skipping these tests consistently raises a flag so we decided to split the tests into runnable and not-runnable on file-level.
      c960b119
  6. 14 May, 2020 2 commits
  7. 08 May, 2020 1 commit
  8. 04 May, 2020 1 commit
    • peterjc123's avatar
      Enable unittest jobs for windows (#604) · 4a24ed72
      peterjc123 authored
      
      
      * Turn on tests when building through conda-build
      
      * skip one failling test on windows.
      
      * Switch to unittest
      
      * Fix conda env activation
      
      * add linux only condition
      
      * Fix librosa installation
      
      * conda-forge channel as a fallback
      
      * Revert "conda-forge channel as a fallback"
      
      This reverts commit 8c15f6638e34792640a3de3e057d9c2995425180.
      
      * Try the pytorch way
      
      * Use conda-forge
      
      * Disable conda-forge
      
      * Install future at setup env
      
      * Move linux unittest CI job tools to dedicated directory
      
      * Restore Linux scripts and move the updated souces to a new subdir
      
      * Add back future
      
      * Remove comments
      Co-authored-by: default avatarVincent Quenneville-Belair <vincentqb@gmail.com>
      Co-authored-by: default avatarmoto <855818+mthrok@users.noreply.github.com>
      4a24ed72
  9. 01 May, 2020 1 commit
  10. 30 Apr, 2020 1 commit
  11. 28 Apr, 2020 1 commit
    • Artyom Astafurov's avatar
      Port sox::vad (#578) · 3ecc7016
      Artyom Astafurov authored
      * initial test, stub function, transform and docstring
      
      * add draft working implementation, update docstrings
      
      * merge VadSate into Vad calss, move Channel into Vad class
      
      * remove functional stub for vad
      
      * add wav file for test
      
      * refactor _measure() to improve performance
      
      * rename argument
      
      * replace copy_ with assignment
      
      * refactor init, update documentation, update test for readability
      
      * clean up default values
      
      * move code from transforms.py to funtional.py and integrate state into a function
      
      * remove Channel state class
      
      * fix calcuation of a flush point
      
      * make multiple channels work
      
      * clean up multi-channel, update test
      
      * rename variables and re-org arguments for _measure
      
      * fix linting errors
      
      * add torchscript consistency test and fix errors
      
      * support and test batch consistency, fix normalization
      
      * update documentation, switch torchscript consistancy test to use transform to improve coverage
      
      * fix linting errors
      
      * remove un-used imports
      
      * address PR comments
      
      * add doc references into rst
      3ecc7016
  12. 22 Apr, 2020 1 commit
  13. 20 Apr, 2020 1 commit
    • Bhargav Kathivarapu's avatar
      Add dcshift to functional (#558) · 91e59231
      Bhargav Kathivarapu authored
      * Add dcshift to functional
      
      * Doc string change and remove inplace clamp
      
      * Minor Fix to dcshit and separate sox test refactoring
      
      * Minor change to limiter_gain type
      
      * adding dcshift to __all__ in functional
      91e59231
  14. 17 Apr, 2020 1 commit
  15. 16 Apr, 2020 1 commit
  16. 14 Apr, 2020 1 commit
    • moto's avatar
      Simplify and abstract away asset access in test (#542) · 0e5581cb
      moto authored
      This PR aims the following things;
      1. Introduce and adopt helper function `get_asset_path` that abstract the logic to construct path to test assets.
      2. Remove `create_temp_assets_dir` anywhere except `test_io`.
      
      The benefits of doing so are,
      a. the test code becomes simpler (no manual construction of asset path with `os.path.join`)
      b. No unnecessary directory creation and file copies.
      
      For 2. and b. tests in `test_io.py` (or tests that use `torchaudio.save`) are the only tests that need to write file to the disc, where the use of temporary directory makes it cleaner, therefore, `create_temp_assets_dir` is not necessary elsewhere. (still, `test_io` does not need to copy the entire asset directory, but that's not the point here.)
      
      Also if any test is accidentally overwriting an asset data, not using a copy will make us aware of such behavior, so it is better to get rid of `create_temp_assets_dir`.
      0e5581cb
  17. 09 Apr, 2020 2 commits
  18. 07 Apr, 2020 1 commit
  19. 06 Apr, 2020 1 commit
    • moto's avatar
      Use torch.testing.assert_allclose (#513) · 5f5df1d6
      moto authored
      * grep -l 'torch.allclose' -r test | xargs sed -i 's/assert torch.allclose/torch.testing.assert_allclose/g'
      
      * grep -l 'torch.allclose' -r test | xargs sed -i 's/self.assertTrue(torch.allclose(\(.*\)))/torch.testing.assert_allclose(\1)/g'
      
      * Fix missing atol/rtol, wrong shape, argument order. Remove redundant shape assertions
      5f5df1d6
  20. 03 Apr, 2020 2 commits
  21. 02 Apr, 2020 1 commit
  22. 30 Mar, 2020 1 commit