Update tf2.py

I changed the comment symbol.('''->#)
Because it's a line of comment.
This commit is contained in:
seo-inyoung 2020-05-31 12:44:24 +09:00 committed by GitHub
parent 3073d9b54a
commit 934959af19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -28,19 +28,19 @@ _force_enable = None
def enable():
"""Enables v2 behaviors."""
#Enables v2 behaviors.
global _force_enable
_force_enable = True
def disable():
"""Disables v2 behaviors."""
#Disables v2 behaviors.
global _force_enable
_force_enable = False
def enabled():
"""Returns True iff TensorFlow 2.0 behavior should be enabled."""
#Returns True iff TensorFlow 2.0 behavior should be enabled.
if _force_enable is None:
return os.getenv("TF2_BEHAVIOR", "0") != "0"