1. 30 Jul, 2020 1 commit
  2. 21 Jul, 2020 1 commit
  3. 16 Jul, 2020 1 commit
  4. 06 Jul, 2020 1 commit
  5. 01 Jul, 2020 1 commit
  6. 18 Jun, 2020 1 commit
    • moto's avatar
      Make TestCases backend-aware (#719) · b17da7a4
      moto authored
      * Make tests backend aware by introducing TorchaudioTestCase and reset backend for each TestCase.
      
      * Set backends for the test cases that require specific backend.
      b17da7a4
  7. 11 Jun, 2020 2 commits
    • 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
    • moto's avatar
      Fix integer division (#714) · 50939b75
      moto authored
      50939b75
  8. 27 May, 2020 1 commit
  9. 14 May, 2020 1 commit
  10. 13 May, 2020 1 commit
  11. 08 May, 2020 1 commit
  12. 30 Apr, 2020 1 commit
  13. 14 Apr, 2020 2 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
      Move lfilter basic test to test_functional (#539) · af88b925
      moto authored
      af88b925
  14. 09 Apr, 2020 1 commit
  15. 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
  16. 03 Apr, 2020 2 commits
  17. 02 Apr, 2020 1 commit
  18. 31 Mar, 2020 1 commit
  19. 30 Mar, 2020 3 commits
  20. 25 Mar, 2020 1 commit
  21. 23 Mar, 2020 1 commit
  22. 13 Jan, 2020 1 commit
    • Vincent QB's avatar
      extend batch support (#391) · c4565245
      Vincent QB authored
      * extend batch support
      
      closes #383
      
      * function for batch test.
      
      * set seed.
      
      * adjust tolerance for griffinlim.
      c4565245
  23. 09 Jan, 2020 1 commit
  24. 02 Jan, 2020 1 commit
  25. 26 Dec, 2019 1 commit
  26. 03 Dec, 2019 1 commit
  27. 02 Dec, 2019 1 commit
  28. 20 Nov, 2019 1 commit
  29. 18 Nov, 2019 1 commit
  30. 31 Oct, 2019 1 commit
  31. 30 Oct, 2019 1 commit
  32. 25 Sep, 2019 1 commit
    • engineerchuan's avatar
      Fix mel filter bank (#294) · 02ce049c
      engineerchuan authored
      * Fixed create_fb_matrix filter bank behavior for fmin/fmax
      * add better test for f_min close to f_max
      * added one more test for f_min > f_max
      * adding one more test
      02ce049c
  33. 20 Sep, 2019 1 commit
  34. 19 Sep, 2019 1 commit
    • Vincent QB's avatar
      Compute deltas (#268) · 401e7aee
      Vincent QB authored
      * compute deltas.
      * multichannel, and random test.
      * documentation.
      * feedback. changing name of window to win_length.
      * passing padding mode.
      401e7aee
  35. 02 Aug, 2019 1 commit
    • Edward Z. Yang's avatar
      Make torchaudio work on Python 2. (#209) · a424509d
      Edward Z. Yang authored
      
      
      - Apply __future__ imports uniformly (future division is the biggy, but absolute
        imports mattered too)
      - Hotfix use of tempfile.TemporaryDirectory using a BC library (DO NOT
        add this library as a dependency to torchaudio; it's only for testing)
      - Replace math.gcd with fractions.gcd
      - Fix a weird pytest collection bug involving parametrized tests
      - Turn on Python 2 and Python 3.7 in Travis.
      Signed-off-by: default avatarEdward Z. Yang <ezyang@fb.com>
      a424509d