Refactor backend and not rely on global variables on switching (#698)
* 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.
Showing
test/test_backend.py
0 → 100644
Please register or sign in to comment