shithub: opus

Download patch

ref: 0763a8f785a5dc1dcfc806c3306856aeff7ac0ad
parent: 81fe5f0261a3b3f148b7c519aab5ce52631ef661
author: Jan Buethe <jbuethe@amazon.de>
date: Sat Jul 22 10:45:43 EDT 2023

replaces multiprocessing module by multiprocess module in testsuite

--- a/dnn/torch/testsuite/requirements.txt
+++ b/dnn/torch/testsuite/requirements.txt
@@ -8,4 +8,5 @@
 pyyaml
 pesq
 AMFM_decompy
-matplotlib
\ No newline at end of file
+matplotlib
+multiprocess
\ No newline at end of file
--- 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
@@ -25,7 +23,6 @@
 parser.add_argument('--num-workers', type=int, help="number of subprocesses to be used (default=4)", default=4)
 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)
--