"examples/nas/vscode:/vscode.git/clone" did not exist on "32efaa366bb067cf6171138b87c0480903f10f10"
Commit 320b7a7e authored by thomwolf's avatar thomwolf
Browse files

fix #1416

parent dbed1c5d
......@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__) # pylint: disable=invalid-name
try:
import tensorflow as tf
assert int(tf.__version__[0]) >= 2
assert hasattr(tf, '__version__') and int(tf.__version__[0]) >= 2
_tf_available = True # pylint: disable=invalid-name
logger.info("TensorFlow version {} available.".format(tf.__version__))
except (ImportError, AssertionError):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment