From 61bc4d2a83fa0cb6de698c026f7e8347f4f3989e Mon Sep 17 00:00:00 2001 From: jiangxing001 <1484736931@qq.com> Date: Wed, 7 Dec 2022 03:20:16 +0000 Subject: [PATCH] update TensorFlow/contrib/cv/LEARNING-TO-LEARN_ID2075_for_TensorFlow/test/train_performance_1p.sh. Signed-off-by: jiangxing001 <1484736931@qq.com> --- .../test/train_performance_1p.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TensorFlow/contrib/cv/LEARNING-TO-LEARN_ID2075_for_TensorFlow/test/train_performance_1p.sh b/TensorFlow/contrib/cv/LEARNING-TO-LEARN_ID2075_for_TensorFlow/test/train_performance_1p.sh index 8114caf1e..7118ec16f 100644 --- a/TensorFlow/contrib/cv/LEARNING-TO-LEARN_ID2075_for_TensorFlow/test/train_performance_1p.sh +++ b/TensorFlow/contrib/cv/LEARNING-TO-LEARN_ID2075_for_TensorFlow/test/train_performance_1p.sh @@ -136,11 +136,11 @@ echo "------------------ Final result ------------------" grep "Mean epoch time:" $cur_path/test/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log > time.log sed -i '1d' time.log -time1=`grep "Mean epoch time:" time.log | awk '{print $4}' | head -1` +#time1=`grep "Mean epoch time:" time.log | awk '{print $4}' | head -1` time2=`grep "Mean epoch time:" time.log | awk 'END {print $4}'` -TrainingTime=`awk 'BEGIN{printf "%.4f\n", '${time2}'-'${time1}'}'` -n=`echo "${train_epochs} - 2"|bc` -TrainingTime=`awk 'BEGIN{printf "%.4f\n", '${TrainingTime}'/'${n}'}'` +#TrainingTime=`awk 'BEGIN{printf "%.4f\n", '${time2}'-'${time1}'}'` +#n=`echo "${train_epochs} - 2"|bc` +#TrainingTime=`awk 'BEGIN{printf "%.4f\n", '${TrainingTime}'/'${n}'}'` #性能看护结果汇总 #训练用例信息,不需要修改 @@ -150,7 +150,7 @@ CaseName=${Network}_bs${BatchSize}_${RANK_SIZE}'p'_'perf' ##获取性能数据,不需要修改 #吞吐量 -ActualFPS=`awk 'BEGIN{printf "%.2f\n", '${batch_size}'/'${TrainingTime}'}'` +ActualFPS=`awk 'BEGIN{printf "%.2f\n", '${batch_size}'/'${time2}'}'` #从train_$ASCEND_DEVICE_ID.log提取Loss到train_${CaseName}_loss.txt中,需要根据模型审视 grep 'Log Mean Final Error: ' $cur_path/test/output/$ASCEND_DEVICE_ID/train_$ASCEND_DEVICE_ID.log|awk '{print $5}' > $cur_path/test/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt -- Gitee