Spaces:
Running
Running
File size: 456 Bytes
864affd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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}")
|