tensorflow / cloud

The TensorFlow Cloud repository provides APIs that will allow to easily go from debugging and training your Keras and TensorFlow code in a local environment to distributed training in the cloud.

Home Page:https://github.com/tensorflow/cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

validate.py import error 'tensorflow.python.framework.versions'

SinaChavoshi opened this issue · comments

validate.py",

line 27, in : Can't find module 'tensorflow.python.framework.versions'. [import-error]

recommended method is to check the loaded module versions

import pkg_resources

version = "2.2.0"
for pkg in pkg_resources.working_set:
    if "tensorflow" == pkg.key:
        version = pkg.version

code is already updated to use "from tensorflow import version". Closing this issue.