Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 7b27918

Browse files
committed
lstm: minor spelling fixes
1 parent 6c4ef81 commit 7b27918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensor2tensor/models/lstm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def dropout_lstm_cell():
6565
attention_mechanism_class = tf.contrib.seq2seq.BahdanauAttention
6666
else:
6767
raise ValueError("Unknown hparams.attention_mechanism = %s, must be "
68-
"luong or bahdanu." % hparams.attention_mechanism)
68+
"luong or bahdanau." % hparams.attention_mechanism)
6969
attention_mechanism = attention_mechanism_class(
7070
hparams.hidden_size, encoder_outputs)
7171

@@ -338,7 +338,7 @@ def lstm_attention():
338338

339339
@registry.register_hparams
340340
def lstm_bahdanau_attention_multi():
341-
"""Multi-head Bahdanu attention."""
341+
"""Multi-head Bahdanau attention."""
342342
hparams = lstm_bahdanau_attention()
343343
hparams.num_heads = 4
344344
return hparams

0 commit comments

Comments
 (0)