1. 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
  2. 04 Aug, 2020 2 commits
    • moto's avatar
      Set zip_safe = False to disable egg installation (#842) · 3b055890
      moto authored
      Currently `setuptools` assumes that torhcaudio is zip safe and performs
      egg (zip) installation when `python setup.py install` (or `pip install .`).
      
      When `torchaudio` loads extension module written with Torchscript, 
      the corresponding loading function requires the `so` file to be present as 
      an actual file, and this does not work well with egg installation.
      
      This CC fixes this by setting `zip_safe=False` in setup.py and disable egg
      installation, so that `python setup.py install` installs uncompressed files
      with regular directory structure.
      3b055890
    • moto's avatar
      Fix skipIfNoExtension (#849) · 11b00d5c
      moto authored
      11b00d5c
  3. 03 Aug, 2020 1 commit
  4. 31 Jul, 2020 3 commits
    • moto's avatar
      [CI] Make *nix unit test fail if C++ extension is not available (#847) · 3bab2b29
      moto authored
      Currently our test suites automatically/silently skip tests on C++ extension
      if it is not available. This is nice in local env, but in CI these tests should be
      enforced and reported as failure if C++ extension is not available.
      
      This PR adds switch for making tests fail if C++ extension is not available,
      and make CI for *nix fail if that's the case.
      3bab2b29
    • moto's avatar
      Fix import order to supress the setuptools warning; (#846) · 7f99271d
      moto authored
      setuptools warns that it should be imported before Distutils
      
      ```
      site-packages/setuptools/distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
      ```
      7f99271d
    • moto's avatar
      Update test/README.md (#843) · 9c56d88d
      moto authored
      * Update links
      * Add how to run tests
      * Update asset info
      9c56d88d
  5. 30 Jul, 2020 2 commits
  6. 29 Jul, 2020 6 commits
  7. 28 Jul, 2020 2 commits
  8. 27 Jul, 2020 3 commits
  9. 24 Jul, 2020 1 commit
  10. 23 Jul, 2020 4 commits
  11. 22 Jul, 2020 7 commits
  12. 21 Jul, 2020 2 commits
  13. 20 Jul, 2020 4 commits
    • moto's avatar
      Update documentation and fix docstrings (#788) · 2381dd89
      moto authored
      - Addresses #549 #638 #786 
      - Add `torchaudio` top level module doc
      - Separate `torchaudio` top level module doc from `index.html`
      - Add `backend` module doc.
      - Remove `-> None` from function signature as it adds noise to documentation
      - Changed function argument name of `torchaudio.backend.sox_io_backend.save` from `tensor` to `src`, so that it matches with the reset of backends.
      - Tweak bunch of docstrings
      2381dd89
    • jimchen90's avatar
      Fix output type of upsampling (#801) · 937d52f8
      jimchen90 authored
      
      
      Fix output type of upsampling
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      937d52f8
    • jimchen90's avatar
      Update default form in docstring (#802) · e82cc350
      jimchen90 authored
      
      
      * Update default form in docstring
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      e82cc350
    • jimchen90's avatar
      Add LibriTTS dataset (#790) · 4b8aad7a
      jimchen90 authored
      
      
      * Add libritts
      
      Add LibriTTS dataset draft
      
      * Add libritts
      
      Use two separate ids for utterance_id.
      
      * Update output form
      
      Use full_id as utterance_id.
      
      * Update format
      
      Add space and test black format
      
      * Update test method
      
      * Add audio and text test
      
      Generate audio and test files on-the-fly in test 
      
      * Update format
      
      * Fix test error and remove assets libritts
      
      The test error is fixed by sorting the file in 4th element instead of 2nd element in samples. Since the files are generated on-the-fly, so the the libritts files in assets are removed.
      
      * Add seed in `get_whitenoise` function
      
      * Change utterance to text
      
      Change `_utterance` to `_text`.
      Co-authored-by: default avatarJi Chen <jimchen90@devfair0160.h2.fair>
      4b8aad7a
  14. 17 Jul, 2020 2 commits