We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226c95d commit 783d03bCopy full SHA for 783d03b
1 file changed
python/tests/test_transformers.py
@@ -1011,13 +1011,13 @@ def test_transformers_wav2vec2(
1011
)
1012
1013
device = "cuda" if os.environ.get("CUDA_VISIBLE_DEVICES") else "cpu"
1014
- # cpu_threads = int(os.environ.get("OMP_NUM_THREADS", 0))
+ cpu_threads = int(os.environ.get("OMP_NUM_THREADS", 0))
1015
model = ctranslate2.models.Wav2Vec2(
1016
output_dir,
1017
device=device,
1018
device_index=[0],
1019
compute_type="int8",
1020
- intra_threads=1,
+ intra_threads=cpu_threads,
1021
inter_threads=1,
1022
1023
0 commit comments