Traktor/myenv/Lib/site-packages/torchaudio/backend/no_backend.py

15 lines
469 B
Python
Raw Normal View History

2024-05-26 05:12:46 +02:00
def __getattr__(name: str):
import warnings
warnings.warn(
"Torchaudio's I/O functions now support par-call bakcend dispatch. "
"Importing backend implementation directly is no longer guaranteed to work. "
"Please use `backend` keyword with load/save/info function, instead of "
"calling the udnerlying implementation directly.",
stacklevel=2,
)
from . import _no_backend
return getattr(_no_backend, name)