• moto's avatar
    Refactor backend and not rely on global variables on switching (#698) · e9f19c35
    moto authored
    * Refactor backend switching
    
    1. Do not rely on global variables for backend switch
       So that load/save/info/load_wav functions will be torchscript-able
    2. Add no_backend module to for the case there is no backend module available
       [bonus] This allows the whole codebase importable on systems that do not have torchaudio C++ extension nor soundfile.
    e9f19c35
test_datasets.py 2 KB