We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7120640 commit 50a74ceCopy full SHA for 50a74ce
1 file changed
python/tests/test_transformers.py
@@ -1091,13 +1091,13 @@ def test_transformers_wav2vec2bert(
1091
)
1092
1093
device = "cuda" if os.environ.get("CUDA_VISIBLE_DEVICES") else "cpu"
1094
- cpu_threads = int(os.environ.get("OMP_NUM_THREADS", 0))
+ # cpu_threads = int(os.environ.get("OMP_NUM_THREADS", 0))
1095
model = ctranslate2.models.Wav2Vec2Bert(
1096
output_dir,
1097
device=device,
1098
device_index=[0],
1099
compute_type="int8",
1100
- intra_threads=cpu_threads,
+ intra_threads=1,
1101
inter_threads=1,
1102
1103
0 commit comments