diff --git a/test_tipc/test_train_inference_python.sh b/test_tipc/test_train_inference_python.sh index b69c0f278f2886eeb7c01847bab5d54ff7a18af6..b9bf9edf309c02fde0a679891b709deef6da9465 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}"