Unverified Commit 2569fa9a authored by Toby Boyd's avatar Toby Boyd Committed by GitHub
Browse files

Revert "Change how TF 2 is checked" (#7260)

This reverts commit 712f473e.
parent 283de38b
......@@ -204,5 +204,7 @@ def set_config_v2(enable_xla=False,
def is_v2_0():
"""Returns true if using tf 2.0."""
from tensorflow.python import tf2
return tf2.enabled()
if hasattr(tf, 'contrib'):
return False
else:
return True
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