Commit 49e269ab authored by Moto Hira's avatar Moto Hira Committed by Facebook GitHub Bot
Browse files

Fix FFmpeg initialization logic (#3474)

Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3474

Differential Revision: D47398447

fbshipit-source-id: f77b685d54ddfc222b806475707d4a10239872f5
parent 786066b4
...@@ -4,7 +4,11 @@ import sys ...@@ -4,7 +4,11 @@ import sys
from torchaudio._internal.module_utils import fail_with_message, is_module_available, no_op from torchaudio._internal.module_utils import fail_with_message, is_module_available, no_op
from .utils import _check_cuda_version, _fail_since_no_ffmpeg, _init_dll_path, _init_ffmpeg, _init_sox, _load_lib try:
from .fb import _init_ffmpeg
except ImportError:
from .utils import _init_ffmpeg
from .utils import _check_cuda_version, _fail_since_no_ffmpeg, _init_dll_path, _init_sox, _load_lib
_LG = logging.getLogger(__name__) _LG = logging.getLogger(__name__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment