From 4a179f5fc0f8c375828b285d79dd5427f9afa263 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Tue, 8 Jun 2021 21:24:43 +0800 Subject: [PATCH] refine status check --- test/infer.sh | 2 +- test/test.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/infer.sh b/test/infer.sh index 61d10b4d..4c49dde7 100644 --- a/test/infer.sh +++ b/test/infer.sh @@ -29,7 +29,7 @@ gpu_precision_list=$(func_parser "${lines[11]}") function status_check(){ - last_status=$1 # 上个阶段的退出码 + last_status=$1 # the exit code run_model=$2 run_command=$3 save_log=$4 diff --git a/test/test.sh b/test/test.sh index cb894f26..d24f2795 100644 --- a/test/test.sh +++ b/test/test.sh @@ -57,7 +57,7 @@ gpu_precision_list=$(func_parser "${lines[11]}") img_dir="./train_data/icdar2015/text_localization/ch4_test_images/" function status_check(){ - last_status=$1 # 上个阶段的退出码 + last_status=$1 # the exit code run_model=$2 run_command=$3 save_log=$4 @@ -92,7 +92,7 @@ for train_model in ${train_model_list[*]}; do else launch="-m paddle.distributed.launch --log_dir=./debug/ --gpus ${gpu}" fi - # echo "model_name: ${model_name} yml_file: ${yml_file} launch: ${launch} gpu: ${gpu}" + for auto_cast in ${auto_cast_list[*]}; do for slim_trainer in ${slim_trainer_list[*]}; do if [ ${slim_trainer} = "norm" ]; then -- GitLab