From db8853e94f5af6365739bac57110f5b9020db0e0 Mon Sep 17 00:00:00 2001 From: liuyihang <1905527319@qq.com> Date: Sat, 2 Apr 2022 02:11:45 +0000 Subject: [PATCH] =?UTF-8?q?update=20Transformer=5FID0004=5Ffor=5FTensorFlo?= =?UTF-8?q?w/test/train=5Ffull=5F8p.sh.=20=E7=BC=BA=E5=B0=91=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E7=B2=BE=E5=BA=A6=E7=9A=84=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=B7=B2=E6=94=BE=E5=85=A5=E6=95=B0=E6=8D=AE=E9=9B=86=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E7=9B=AE=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E5=B7=B2=E6=9C=AC=E5=9C=B0=E9=AA=8C=E8=AF=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nlp/Transformer_ID0004_for_TensorFlow/test/train_full_8p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/built-in/nlp/Transformer_ID0004_for_TensorFlow/test/train_full_8p.sh b/TensorFlow/built-in/nlp/Transformer_ID0004_for_TensorFlow/test/train_full_8p.sh index aa6c26ed2..6fc5522d8 100644 --- a/TensorFlow/built-in/nlp/Transformer_ID0004_for_TensorFlow/test/train_full_8p.sh +++ b/TensorFlow/built-in/nlp/Transformer_ID0004_for_TensorFlow/test/train_full_8p.sh @@ -224,7 +224,7 @@ echo "Final Performance images/sec : $FPS" #输出训练精度,需要模型审视修改 bash inference.sh bash scripts/process_output.sh ${data_path}/newstest2014.tok.de ${data_path}/output-0603 ${data_path}/vocab.share -perl multi-bleu.perl ${data_path}/newstest2014.tok.de.forbleu < ${data_path}/output-0603.forbleu > result_bleu.txt +perl ${data_path}/multi-bleu.perl ${data_path}/newstest2014.tok.de.forbleu < ${data_path}/output-0603.forbleu > result_bleu.txt cat result_bleu.txt >> $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log train_accuracy=`grep "BLEU" $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'END {print $3}'|tr -d ','` #打印,不需要修改 -- Gitee