File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 6
6
7
7
def base_smoke_test ():
8
8
import torchaudio # noqa: F401
9
- import torchaudio .compliance .kaldi # noqa: F401
10
9
import torchaudio .datasets # noqa: F401
11
10
import torchaudio .functional # noqa: F401
12
11
import torchaudio .models # noqa: F401
13
12
import torchaudio .pipelines # noqa: F401
14
- import torchaudio .sox_effects # noqa: F401
15
13
import torchaudio .transforms # noqa: F401
16
14
import torchaudio .utils # noqa: F401
17
15
18
-
19
- def ffmpeg_test ():
20
- from torchaudio .io import StreamReader # noqa: F401
21
-
22
-
23
- def _run_smoke_test (check_ffmpeg ):
16
+ def _run_smoke_test ():
24
17
base_smoke_test ()
25
-
26
- if not check_ffmpeg :
27
- print ("Skipping ffmpeg test." )
28
- else :
29
- ffmpeg_test ()
30
-
31
18
print ("Smoke test passed." )
32
19
33
20
@@ -38,13 +25,13 @@ def main(args=None) -> None:
38
25
logging .basicConfig (format = "%(levelname)s: %(message)s" , level = logging .DEBUG )
39
26
40
27
_chdir ()
41
- _run_smoke_test (options . ffmpeg )
28
+ _run_smoke_test ()
42
29
43
30
44
31
def _parse_args (args ):
45
32
parser = argparse .ArgumentParser ()
46
33
47
- # Warning: Please note this option should not be widely used, only use it when absolutely necessary
34
+ # Warning: Please note this option does nothing and only exists for backward compatibility.
48
35
parser .add_argument ("--no-ffmpeg" , dest = "ffmpeg" , action = "store_false" )
49
36
parser .add_argument ("--debug" , action = "store_true" , help = "Enable debug logging." )
50
37
You can’t perform that action at this time.
0 commit comments