Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
2569fa9a
Unverified
Commit
2569fa9a
authored
Jul 19, 2019
by
Toby Boyd
Committed by
GitHub
Jul 19, 2019
Browse files
Revert "Change how TF 2 is checked" (#7260)
This reverts commit
712f473e
.
parent
283de38b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
official/utils/misc/keras_utils.py
official/utils/misc/keras_utils.py
+4
-2
No files found.
official/utils/misc/keras_utils.py
View file @
2569fa9a
...
@@ -204,5 +204,7 @@ def set_config_v2(enable_xla=False,
...
@@ -204,5 +204,7 @@ def set_config_v2(enable_xla=False,
def
is_v2_0
():
def
is_v2_0
():
"""Returns true if using tf 2.0."""
"""Returns true if using tf 2.0."""
from
tensorflow.python
import
tf2
if
hasattr
(
tf
,
'contrib'
):
return
tf2
.
enabled
()
return
False
else
:
return
True
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment