aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
diff options
context:
space:
mode:
authorGravatar Skye Wanderman-Milne <skyewm@google.com>2018-08-23 15:56:07 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-23 16:00:14 -0700
commit3dd67a1e399505a297bbdd58440b06855c92a35d (patch)
tree9bde09ff872150f682408d74c84046e5bdfd490d /tensorflow/python/kernel_tests/control_flow_ops_py_test.py
parent85acad7e60a85a30e414e13ddb7e02d1a90cba3f (diff)
Switch cond_v2 to using tfe.defun instead of function.Defun.
This requires a few changes: - Make func_graph_from_py_func public (not part of the official public API though) - Make function_def_to_graph return the new FuncGraph implementation. - Disables some cond_v2 tests until we get them working with the new FuncGraph implementation. - Add outer_graph field to FuncGraph. - Add external_captures and internal_captures properties to FuncGraph for readability. - Remove extra_inputs/extra_args terminology from cond_v2_impl for readability. - Use compat.as_str() around Graph._functions keys. In Python 3, we were somehow getting a mix of str and bytes objects. PiperOrigin-RevId: 210015940
Diffstat (limited to 'tensorflow/python/kernel_tests/control_flow_ops_py_test.py')
-rw-r--r--tensorflow/python/kernel_tests/control_flow_ops_py_test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/python/kernel_tests/control_flow_ops_py_test.py b/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
index 5e0447e4ff..4a3e767f4d 100644
--- a/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
+++ b/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
@@ -32,6 +32,7 @@ from tensorflow.core.protobuf import config_pb2
from tensorflow.python.client import device_lib
from tensorflow.python.client import session
from tensorflow.python.eager import context
+from tensorflow.python.eager import function as _ # pylint: disable=unused-import
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import errors_impl