"tests/vscode:/vscode.git/clone" did not exist on "7c7910e431108b266965989ec72b462162607a47"
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 ...@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__) # pylint: disable=invalid-name
try: try:
import tensorflow as tf 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 _tf_available = True # pylint: disable=invalid-name
logger.info("TensorFlow version {} available.".format(tf.__version__)) logger.info("TensorFlow version {} available.".format(tf.__version__))
except (ImportError, AssertionError): 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