From 61d5d1edfa3aded015fc8a44b4d8daab3308afa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=9B?= Date: Mon, 21 Mar 2022 09:29:48 +0000 Subject: [PATCH] update train_performance_1p.sh. --- .../VIT_ID2381_for_PyTorch/test/train_performance_1p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/dev/cv/image_classification/VIT_ID2381_for_PyTorch/test/train_performance_1p.sh b/PyTorch/dev/cv/image_classification/VIT_ID2381_for_PyTorch/test/train_performance_1p.sh index e68d8e19ab..a83c9d3725 100644 --- a/PyTorch/dev/cv/image_classification/VIT_ID2381_for_PyTorch/test/train_performance_1p.sh +++ b/PyTorch/dev/cv/image_classification/VIT_ID2381_for_PyTorch/test/train_performance_1p.sh @@ -142,7 +142,7 @@ e2e_time=$(( $end_time - $start_time )) #结果打印,不需要修改 echo "------------------ Final result ------------------" #输出性能FPS,需要模型审视修改 -FPS=`grep FPS $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk -F "FPS:" '{print $2}'|tail -n +2|awk '{sum+=$1} END {print"",sum/NR}'|sed s/[[:space:]]//g` +FPS=`grep FPS $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk -F "FPS:" '{print $2}'|tail -n +3|awk '{sum+=$1} END {print"",sum/NR}'|sed s/[[:space:]]//g` #FPS=`awk 'BEGIN{printf "%.2f\n",'${batch_size}'*'${perf}'}'` -- Gitee