Open hkhpub opened 6 years ago
This is resolved in a Pull Request. https://github.com/tensorflow/nmt/pull/369 It's impossible valid immediately while NMT team generate a release.
This should be a temporal workaround:
from distutils.version import StrictVersion
def check_tensorflow_version():
min_tf_version = "1.4.0"
if StrictVersion(tf.__version__) < StrictVersion(min_tf_version):
raise EnvironmentError("Tensorflow version must >= %s" % min_tf_version)
It checks version by comparing version strings, so from version 1.10, the check does not work any more.