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

14 lines
443 B
Python
Raw Permalink Normal View History

2024-05-26 05:12:46 +02:00
def __getattr__(name: str):
if name == "AudioMetaData":
import warnings
warnings.warn(
"`torchaudio.backend.common.AudioMetaData` has been moved to "
"`torchaudio.AudioMetaData`. Please update the import path.",
stacklevel=2,
)
from torchaudio import AudioMetaData
return AudioMetaData
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")