From 85ac10310a144faba26cb0db947decfc15825d63 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 22 Dec 2021 11:29:28 +0800 Subject: [PATCH] set env --- test_tipc/test_train_inference_python.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_tipc/test_train_inference_python.sh b/test_tipc/test_train_inference_python.sh index b69c0f27..b9bf9edf 100644 --- a/test_tipc/test_train_inference_python.sh +++ b/test_tipc/test_train_inference_python.sh @@ -259,7 +259,6 @@ else env="" elif [ ${#gpu} -le 1 ];then env="export CUDA_VISIBLE_DEVICES=${gpu}" - eval ${env} elif [ ${#gpu} -le 15 ];then IFS="," array=(${gpu}) @@ -280,6 +279,7 @@ else set_amp_config=" " fi for trainer in ${trainer_list[*]}; do + eval ${env} flag_quant=False if [ ${trainer} = ${pact_key} ]; then run_train=${pact_trainer} @@ -332,7 +332,6 @@ else cmd="${python} -m paddle.distributed.launch --ips=${ips} --gpus=${gpu} ${run_train} ${set_use_gpu} ${set_save_model} ${set_pretrain} ${set_epoch} ${set_autocast} ${set_batchsize} ${set_train_params1} ${set_amp_config}" fi # run train - eval "unset CUDA_VISIBLE_DEVICES" eval $cmd status_check $? "${cmd}" "${status_log}" -- GitLab