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