aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/autograph/operators/__init__.py
diff options
context:
space:
mode:
authorGravatar Dan Moldovan <mdan@google.com>2018-10-10 07:38:42 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-10 07:42:44 -0700
commit93226f635c5c108b3b501d8bbcf27e64dec49fb9 (patch)
tree0a703b3f99168dc3852c9961c874797827064e10 /tensorflow/python/autograph/operators/__init__.py
parente851764c24e5ac5f527a7ce2ce12050edddeb209 (diff)
Use overloaded operators for the assert statement. This should remove the reliance on importing tensorflow in the generated code.
PiperOrigin-RevId: 216528047
Diffstat (limited to 'tensorflow/python/autograph/operators/__init__.py')
-rw-r--r--tensorflow/python/autograph/operators/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/python/autograph/operators/__init__.py b/tensorflow/python/autograph/operators/__init__.py
index 0d3b44b6c4..53f4b0ddc8 100644
--- a/tensorflow/python/autograph/operators/__init__.py
+++ b/tensorflow/python/autograph/operators/__init__.py
@@ -45,6 +45,7 @@ from tensorflow.python.autograph.operators.data_structures import list_stack
from tensorflow.python.autograph.operators.data_structures import ListPopOpts
from tensorflow.python.autograph.operators.data_structures import ListStackOpts
from tensorflow.python.autograph.operators.data_structures import new_list
+from tensorflow.python.autograph.operators.exceptions import assert_stmt
from tensorflow.python.autograph.operators.py_builtins import float_
from tensorflow.python.autograph.operators.py_builtins import int_
from tensorflow.python.autograph.operators.py_builtins import len_