Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Fixing #405
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 233662426
  • Loading branch information
ranjita-naik authored and ebrevdo committed Feb 13, 2019
1 parent c42f976 commit 0be8642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmt/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def get_model_creator(hparams):
if (hparams.encoder_type == "gnmt" or
hparams.attention_architecture in ["gnmt", "gnmt_v2"]):
model_creator = gnmt_model.GNMTModel
elif hparams.attention_architecture == "standard":
elif hparams.attention and hparams.attention_architecture == "standard":
model_creator = attention_model.AttentionModel
elif not hparams.attention:
model_creator = nmt_model.Model
Expand Down

0 comments on commit 0be8642

Please sign in to comment.