File tree Expand file tree Collapse file tree
ML-Frameworks/pytorch-aarch64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818# *******************************************************************************
1919
2020if [[ " ${ONEDNN_DEFAULT_FPMATH_MODE:- } " == " BF16" ]]; then
21- OMP_NUM_THREADS=16 python -m unittest pytorch/test/test_mkldnn.py -k lower_precision -k bf16 -k bfloat16 -k float16
21+ # Run bfloat16 tests but carefully ignore float16
22+ OMP_NUM_THREADS=16 python3 -m pytest -q pytorch/test/test_mkldnn.py -k ' bfloat16 or ((lower_precision or bf16) and not float16)'
2223else
23- OMP_NUM_THREADS=16 python -m unittest pytorch/test/test_mkldnn.py
24+ OMP_NUM_THREADS=16 python3 -m pytest -q pytorch/test/test_mkldnn.py
2425fi
2526
2627if [[ " ${ONEDNN_DEFAULT_FPMATH_MODE:- } " == " BF16" ]]; then
27- OMP_NUM_THREADS=16 python -m unittest pytorch/test/test_transformers.py -k bfloat16 -k float16
28+ # Run bfloat16 tests but carefully ignore float16
29+ OMP_NUM_THREADS=16 python3 -m pytest -q pytorch/test/test_transformers.py -k ' bfloat16 or ((lower_precision or bf16) and not float16)'
2830else
29- OMP_NUM_THREADS=16 python -m unittest pytorch/test/test_transformers.py
31+ OMP_NUM_THREADS=16 python3 -m pytest -q pytorch/test/test_transformers.py
3032fi
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ pyaml~=24.9.0
2222python-dateutil ~= 2.9.0.post0
2323pytz == 2024.2
2424PyYAML ~= 6.0.2
25+ pytest ~= 8.4.2
2526regex == 2024.9.11
2627requests ~= 2.32.3
2728safetensors ~= 0.4.5
You can’t perform that action at this time.
0 commit comments