tensorflow / nmt

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

Bug for checking Tensorflow version #376

Open kpiyush16 opened 5 years ago

kpiyush16 commented 5 years ago

In the directory: nmt/utils/misc_utils.py The function named check_tensorflow_version(): should be either passed (pass) or something like

 min_tf_version = int("1.4.0-dev20171024".split('.')[1])
 if int(tf.__version__.split('.')[1]) < min_tf_version:
   raise EnvironmentError("Tensorflow version must >= %s" % min_tf_version)

as for tf.__version__>= 1.10, this check fails.