From 7529a53eaaa040baed24155ed60a286e5c73d7db Mon Sep 17 00:00:00 2001 From: Rachel Hu Date: Tue, 16 Nov 2021 19:27:15 -0800 Subject: [PATCH] jenkin fix --- chapter_recurrent-modern/seq2seq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter_recurrent-modern/seq2seq.md b/chapter_recurrent-modern/seq2seq.md index a3c13b788..c614fb270 100644 --- a/chapter_recurrent-modern/seq2seq.md +++ b/chapter_recurrent-modern/seq2seq.md @@ -802,8 +802,8 @@ def predict_seq2seq(net, src_sentence, src_vocab, tgt_vocab, num_steps, if pred == tgt_vocab['']: break output_seq.append(pred.numpy()) - return ' '.join(tgt_vocab.to_tokens( - tf.reshape(output_seq, shape = -1).numpy().tolist())), \ attention_weight_seq + return ' '.join(tgt_vocab.to_tokens(tf.reshape(output_seq, + shape = -1).numpy().tolist())), attention_weight_seq ``` ## 预测序列的评估