@@ -28,15 +28,7 @@ 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- LOG " [INFO] Install torch==2.7.0 ..."
32- pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118 > /dev/null
33- [ $? -ne 0 ] && LOG " [FATAL] Install torch2.7.0 failed!" && exit -1
34- python -c " import torch; print('[PyTorch Version]', torch.__version__)"
35- # install paddlepaddle of develop
36- LOG " [INFO] Install paddlepaddle-develop ..."
37- python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/ > /dev/null
38- [ $? -ne 0 ] && LOG " [FATAL] Install paddlepaddle-develop failed!" && exit -1
39- python -c " import paddle; print('[PaddlePaddle Commit]', paddle.version.commit)"
31+ pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118
4032}
4133
4234function check_validation() {
@@ -58,7 +50,7 @@ function check_validation() {
5850 done
5951 if [ ${# fail_name[@]} -ne 0 ]
6052 then
61- LOG " [FATAL] Failed samples : ${fail_name[@]} "
53+ LOG " [FATAL] Failed tests : ${fail_name[@]} "
6254 echo ${fail_name[@]}
6355 exit -1
6456 fi
@@ -71,7 +63,7 @@ function summary_problems() {
7163 then
7264 LOG " [FATAL] ============================================"
7365 LOG " [FATAL] Summary problems:"
74- LOG " [FATAL] === Sample validate error - Please fix the failed samples according to fatal log:"
66+ LOG " [FATAL] === API test error - Please fix the failed API tests accroding to fatal log:"
7567 LOG " [FATAL] $check_validation_info "
7668 exit $check_validation_code
7769 fi
0 commit comments