From 23022ae9900aff0b90d98d601966f072cc7c1568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=9C=B5?= <9953286+wang-duo22@user.noreply.gitee.com> Date: Tue, 29 Mar 2022 09:52:33 +0000 Subject: [PATCH 1/2] =?UTF-8?q?loss=E5=8F=96=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/train_performance_8p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh index 840ed5919..53ab118b6 100644 --- a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh +++ b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh @@ -161,7 +161,7 @@ ActualFPS=${FPS} TrainingTime=${sec_per_iter} # 从train_$ASCEND_DEVICE_ID.log提取Loss到train_${CaseName}_loss.txt中,需要根据模型审视 -grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt +grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'NR>2'|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt # 最后一个迭代loss值,不需要修改 ActualLoss=`awk 'END {print}' ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt` -- Gitee From 32fe6f5fc98e5dad2c58e1286dd700145ed39060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=9C=B5?= <9953286+wang-duo22@user.noreply.gitee.com> Date: Tue, 29 Mar 2022 09:53:17 +0000 Subject: [PATCH 2/2] =?UTF-8?q?loss=E5=8F=96=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/train_performance_1p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh index 1d702a989..4aabf10e9 100644 --- a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh +++ b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh @@ -147,7 +147,7 @@ ActualFPS=${FPS} TrainingTime=${sec_per_iter} # 从train_$ASCEND_DEVICE_ID.log提取Loss到train_${CaseName}_loss.txt中,需要根据模型审视 -grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt +grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'NR>2'|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt # 最后一个迭代loss值,不需要修改 ActualLoss=`awk 'END {print}' ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt` -- Gitee