1. 16 Apr, 2020 1 commit
  2. 14 Apr, 2020 3 commits
    • 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
    • moto's avatar
      Remove duplicated lfilter tests (#541) · 0fa07595
      moto authored
      This lfilter tests were moved to `test_torchscript_consistency.py` in #507 and GPU tests were added in #528.
      We can safely remove this tests from `test_functional_filtering.py`.
      0fa07595
    • moto's avatar
      Move lfilter basic test to test_functional (#539) · af88b925
      moto authored
      af88b925
  3. 13 Apr, 2020 1 commit
  4. 06 Apr, 2020 2 commits
    • moto's avatar
      Fix GPU test skip logic (#516) · f37d37d6
      moto authored
      f37d37d6
    • 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
  5. 03 Apr, 2020 3 commits
  6. 30 Mar, 2020 2 commits
    • Vincent QB's avatar
      testing with sox only when sox is available (#419) · d63d851e
      Vincent QB authored
      * testing with sox only when sox is available.
      
      * use wav instead of mp3 for testing functions.
      
      * typo.
      
      * guard against not sox.
      
      * backends definition.
      
      * grouping backend functions into a separate file.
      
      * remove duplicated code.
      
      * requires sox.
      
      * replace by wav, requires sox.
      
      * require with scope.
      
      * undo alignment.
      
      * requires sox for these two, because of mp3.
      
      * no longer need first mp3.
      
      * cleaning.
      
      * new wav version of file.
      
      * flake8.
      
      * remove unnecessary load.
      
      * flake8.
      
      * lint.
      
      * lint.
      
      * revert formatting of file.
      
      * merging into common_utils.
      
      * docstring.
      
      * rename to common_utils.
      d63d851e
    • moto's avatar
      Remove PY2 related stuff from test (#478) · beb6e530
      moto authored
      beb6e530
  7. 24 Mar, 2020 1 commit
  8. 17 Mar, 2020 1 commit
  9. 25 Feb, 2020 1 commit
  10. 20 Nov, 2019 1 commit
  11. 01 Nov, 2019 1 commit
  12. 19 Sep, 2019 1 commit
    • engineerchuan's avatar
      Fix lfilter for GPU machine (#291) · e3024341
      engineerchuan authored
      * Ensure that lfilter works with GPU
      * Add option to load on different device
      * Debugging tests of lfilter on GPU
      * allowing arbitrary types into lfilter
      e3024341
  13. 18 Sep, 2019 1 commit
    • engineerchuan's avatar
      Make lfilter, and related filters, available (#275) · 8273c3f4
      engineerchuan authored
      * Add basic low pass filtering
      * Add highpass filtering
      * More tests of IIR vs FIR
      * Implement convolve function, add tests
      * Move lfilter and convolve into functional, more tests
      * added additional documentation for convolve and lfilter, renamed functional_filtering to functional_sox_convenience
      * Follow naming convention for sample rate in functional
      * fix failing vctk manifest test to account for adding more test audios into assets
      * Adding documentation for lfilter, biquad, highpass_biquad, lowpass_biquad
      * added matrix based implementation of lfilter
      * adding python lfilter implementation
      * factor out biquad, lowpass, highpass to sox compatibility
      8273c3f4