diff options
author | Jan Buethe <jbuethe@amazon.de> | 2023-07-23 00:45:43 +0300 |
---|---|---|
committer | Jan Buethe <jbuethe@amazon.de> | 2023-07-23 00:45:43 +0300 |
commit | 0763a8f785a5dc1dcfc806c3306856aeff7ac0ad (patch) | |
tree | c6c8a2cef4445c4574be364654bbd4849fb02e3e | |
parent | 81fe5f0261a3b3f148b7c519aab5ce52631ef661 (diff) |
replaces multiprocessing module by multiprocess module in testsuite
-rw-r--r-- | dnn/torch/testsuite/requirements.txt | 3 | ||||
-rw-r--r-- | dnn/torch/testsuite/run_test.py | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/dnn/torch/testsuite/requirements.txt b/dnn/torch/testsuite/requirements.txt index 2ee4220d..af2d9916 100644 --- a/dnn/torch/testsuite/requirements.txt +++ b/dnn/torch/testsuite/requirements.txt @@ -8,4 +8,5 @@ soundfile pyyaml pesq AMFM_decompy -matplotlib
\ No newline at end of file +matplotlib +multiprocess
\ No newline at end of file diff --git a/dnn/torch/testsuite/run_test.py b/dnn/torch/testsuite/run_test.py index a397a464..38ca8122 100644 --- a/dnn/torch/testsuite/run_test.py +++ b/dnn/torch/testsuite/run_test.py @@ -1,7 +1,5 @@ - -from genericpath import isfile import os -import multiprocessing +import multiprocess as multiprocessing import random import subprocess import argparse @@ -26,7 +24,6 @@ parser.add_argument('--num-workers', type=int, help="number of subprocesses to b parser.add_argument('--plc-suffix', type=str, default="_is_lost.txt", help="suffix of plc error pattern file: only relevant if command chain uses PLCFILE (default=_is_lost.txt)") parser.add_argument('--metrics', type=str, default='warpq', help='comma separated string of metrics, supported: {{"warpq", "pesq"}}, default="warpq"') - def check_for_sox_in_path(): r = subprocess.run("sox -h", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) return r.returncode == 0 |