From c3755fbfa998688ed99e6f08132d0e8cb6674a03 Mon Sep 17 00:00:00 2001 From: jiangxing001 <1484736931@qq.com> Date: Wed, 30 Nov 2022 01:18:22 +0000 Subject: [PATCH] update /depthsuperviseset/depthsupervisesenet_ID0200_for_TensorFlow/test/train_performance_1p.sh. Signed-off-by: jiangxing001 <1484736931@qq.com> --- .../test/train_performance_1p.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/depthsuperviseset/depthsupervisesenet_ID0200_for_TensorFlow/test/train_performance_1p.sh b/TensorFlow/contrib/cv/depthsuperviseset/depthsupervisesenet_ID0200_for_TensorFlow/test/train_performance_1p.sh index 44517dc50..a542569f5 100644 --- a/TensorFlow/contrib/cv/depthsuperviseset/depthsupervisesenet_ID0200_for_TensorFlow/test/train_performance_1p.sh +++ b/TensorFlow/contrib/cv/depthsuperviseset/depthsupervisesenet_ID0200_for_TensorFlow/test/train_performance_1p.sh @@ -129,7 +129,8 @@ e2e_time=$(( $end_time - $start_time )) #结果打印,不需要修改 echo "------------------ Final result ------------------" #输出性能FPS,需要模型审视修改 -FPS=`grep Time $cur_path/test/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'END {print}' |awk '{print $5}'` +Time=`grep Time $cur_path/test/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'END {print}' |awk '{print $5}'` +FPS=`awk 'BEGIN{printf "%.2f\n",'1*${batch_size}'/'${Time}'}'` #打印,不需要修改 echo "Final Performance images/sec : $FPS" -- Gitee