From 9d30bfd8889b8b8c440ff9b50498769aa4275651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=95=85?= Date: Fri, 9 Jun 2023 06:27:47 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9FPS=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘畅 --- .../SRGAN_ID2087_for_Tensorflow/test/train_performance_1p.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TensorFlow/contrib/cv/SRGAN_ID2087_for_Tensorflow/test/train_performance_1p.sh b/TensorFlow/contrib/cv/SRGAN_ID2087_for_Tensorflow/test/train_performance_1p.sh index 780b0eb78..ece3dd059 100644 --- a/TensorFlow/contrib/cv/SRGAN_ID2087_for_Tensorflow/test/train_performance_1p.sh +++ b/TensorFlow/contrib/cv/SRGAN_ID2087_for_Tensorflow/test/train_performance_1p.sh @@ -132,8 +132,7 @@ else fi # 性能相关数据计算 -TimeStep=`grep -Eo "[0-9]*.[0-9]*it/s" ${print_log} | head -n -1 | tail -n 10 | tr -d "it/s" | awk '{sum+=$1} END {print sum/NR}'` -StepTime=`awk 'BEGIN{printf "%.2f\n", '1'/'${TimeStep}'}'` +StepTime=`grep -Eo "[0-9]*.[0-9]*s/it" ${print_log} | head -n -1 | tail -n 10 | tr -d "s/it" | awk '{sum+=$1} END {print sum/NR}'` FPS=`awk 'BEGIN{printf "%.2f\n", '${batch_size}'/'${StepTime}'}'` # 提取所有loss打印信息 -- Gitee