tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.35k stars 1.96k forks source link

tf.contribtf.contrib.learn.ModeKeys.TRAIN #406

Open qujinqiang opened 5 years ago

qujinqiang commented 5 years ago

when run the example has an error, it's notice that "module 'tensorflow' has no contribtf", and the code "tf.contribtf.contrib.learn.ModeKeys.TRAIN" in 194 line on model.py, when i modify the code to "tf.contrib.learn.ModeKeys.TRAIN", it can run.

abisz commented 5 years ago

If you take a look at the file you can see that it looks exactly as you would expect. Maybe your editor did something strange there? https://github.com/tensorflow/nmt/blob/master/nmt/model.py#L194

qujinqiang commented 5 years ago

yeah,maybe something strange happened...