"vscode:/vscode.git/clone" did not exist on "c6d7f8d37080967ca7b61c2b8e3723130873c7cb"
  • 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
utils.py 2.03 KB