From 4c24368b7d355092eb6dcb766d70eecd008a073e Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 13 Jul 2022 18:07:06 +0800 Subject: [PATCH] fix fp16 benchmark train --- test_tipc/benchmark_train.sh | 4 ++-- test_tipc/test_train_inference_python.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_tipc/benchmark_train.sh b/test_tipc/benchmark_train.sh index e3e4d627..1d1e209a 100644 --- a/test_tipc/benchmark_train.sh +++ b/test_tipc/benchmark_train.sh @@ -139,8 +139,8 @@ else device_num=${params_list[4]} IFS=";" - if [ ${precision} = "null" ];then - precision="fp32" + if [ ${precision} = "fp16" ];then + precision="amp" fi fp_items_list=($precision) diff --git a/test_tipc/test_train_inference_python.sh b/test_tipc/test_train_inference_python.sh index 907efcec..7748644b 100644 --- a/test_tipc/test_train_inference_python.sh +++ b/test_tipc/test_train_inference_python.sh @@ -265,7 +265,7 @@ else if [ ${run_train} = "null" ]; then continue fi - set_autocast=$(func_set_params "${autocast_key}" "${autocast}") + set_epoch=$(func_set_params "${epoch_key}" "${epoch_num}") set_pretrain=$(func_set_params "${pretrain_model_key}" "${pretrain_model_value}") set_batchsize=$(func_set_params "${train_batch_key}" "${train_batch_value}") -- GitLab