@@ -28,15 +28,7 @@ function prepare_env() {
28
28
env http_proxy=" " https_proxy=" " pip install -U pip > /dev/null
29
29
[ $? -ne 0 ] && LOG " [FATAL] Update pip failed!" && exit -1
30
30
# 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
40
32
}
41
33
42
34
function check_validation() {
@@ -58,7 +50,7 @@ function check_validation() {
58
50
done
59
51
if [ ${# fail_name[@]} -ne 0 ]
60
52
then
61
- LOG " [FATAL] Failed samples : ${fail_name[@]} "
53
+ LOG " [FATAL] Failed tests : ${fail_name[@]} "
62
54
echo ${fail_name[@]}
63
55
exit -1
64
56
fi
@@ -71,7 +63,7 @@ function summary_problems() {
71
63
then
72
64
LOG " [FATAL] ============================================"
73
65
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:"
75
67
LOG " [FATAL] $check_validation_info "
76
68
exit $check_validation_code
77
69
fi
0 commit comments