Skip to content

Commit

Permalink
jenkin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmermaid committed Nov 17, 2021
1 parent 54cee2b commit 7529a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter_recurrent-modern/seq2seq.md
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,8 @@ def predict_seq2seq(net, src_sentence, src_vocab, tgt_vocab, num_steps,
if pred == tgt_vocab['<eos>']:
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
```

## 预测序列的评估
Expand Down

0 comments on commit 7529a53

Please sign in to comment.