From 8fa623cfc952434871ea5abe26c6834ee9d46fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E4=BF=8A=E8=BE=89?= <11181965+zhujunhui1@user.noreply.gitee.com> Date: Mon, 3 Jul 2023 03:36:58 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B2=BE=E5=BA=A6=E8=84=9A?= =?UTF-8?q?=E6=9C=ACFPS=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 朱俊辉 <11181965+zhujunhui1@user.noreply.gitee.com> --- .../ResNet50_ID0058_for_TensorFlow/test/train_full_8p.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/test/train_full_8p.sh b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/test/train_full_8p.sh index f96c9d428..f9853eb22 100644 --- a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/test/train_full_8p.sh +++ b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/test/train_full_8p.sh @@ -172,7 +172,7 @@ e2e_time=$(( $end_time - $start_time )) echo "------------------ Final result ------------------" #单step时长,需要从train_$ASCEND_DEVICE_ID.log里,通过关键字获取。需要模型审视修改 -FPS=grep "FPS:" ${cur_path}/output/0/train_0.log |grep -v "hooks.py"|awk -F " " 'END {print $5}' |awk -F ":" '{print $2}' +FPS=`grep "FPS:" ${cur_path}/output/0/train_0.log |grep -v "hooks.py"|awk -F " " 'END {print $5}' |awk -F ":" '{print $2}'` #echo "Final Performance ms/step : $FPS" #输出训练精度,需要模型审视修改 @@ -202,7 +202,7 @@ TrainingTime=`awk 'BEGIN{printf "%.2f\n",'${BatchSize}'*'${RANK_SIZE}'*1000/'${F ##获取性能数据,不需要修改 #吞吐量 -ActualFPS=${e2e_time} +ActualFPS=${FPS} #单迭代训练时长 TrainingTime=${e2e_time} -- Gitee