@@ -28,9 +28,13 @@ function prepare_env() {
2828 env http_proxy=" " https_proxy=" " pip install -U pip > /dev/null
2929 [ $? -ne 0 ] && LOG " [FATAL] Update pip failed!" && exit -1
3030 # install torch
31- pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118
31+ pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118 > /dev/null
32+ [ $? -ne 0 ] && LOG " [FATAL] Install torch2.7.0 failed!" && exit -1
33+ python -c " import torch; print('[PyTorch Version]', torch.__version__)"
3234 # install paddlepaddle of develop
33- python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/
35+ python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/ > /dev/null
36+ [ $? -ne 0 ] && LOG " [FATAL] Install paddlepaddle-develop failed!" && exit -1
37+ python -c " import paddle; print('[PaddlePaddle Commit]', paddle.version.commit)"
3438}
3539
3640function check_validation() {
@@ -52,7 +56,7 @@ function check_validation() {
5256 done
5357 if [ ${# fail_name[@]} -ne 0 ]
5458 then
55- LOG " [FATAL] Failed tests : ${fail_name[@]} "
59+ LOG " [FATAL] Failed samples : ${fail_name[@]} "
5660 echo ${fail_name[@]}
5761 exit -1
5862 fi
@@ -65,7 +69,7 @@ function summary_problems() {
6569 then
6670 LOG " [FATAL] ============================================"
6771 LOG " [FATAL] Summary problems:"
68- LOG " [FATAL] === API test error - Please fix the failed API tests accroding to fatal log:"
72+ LOG " [FATAL] === Sample validate error - Please fix the failed samples according to fatal log:"
6973 LOG " [FATAL] $check_validation_info "
7074 exit $check_validation_code
7175 fi
0 commit comments