diff options
author | Dan Moldovan <mdan@google.com> | 2018-10-10 07:38:42 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-10 07:42:44 -0700 |
commit | 93226f635c5c108b3b501d8bbcf27e64dec49fb9 (patch) | |
tree | 0a703b3f99168dc3852c9961c874797827064e10 /tensorflow/python/autograph/operators/__init__.py | |
parent | e851764c24e5ac5f527a7ce2ce12050edddeb209 (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__.py | 1 |
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_ |