aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-24 10:18:04 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-24 10:25:11 -0700
commitfbd6ea27dbdc7eb00db60e643d3b3ee5f1985c26 (patch)
treeaacf20a3b664132c6f58942b55182ee41893c4f9 /tensorflow/python/kernel_tests/control_flow_ops_py_test.py
parent77d56a08826826db3350968f19070434fa922995 (diff)
Replace self.test_session(graph=<an object not None>) with self.session(graph=...) as it's the same semantic.
PiperOrigin-RevId: 214286845
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.py2
1 files changed, 1 insertions, 1 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 ebeabcfe1a..2996539004 100644
--- a/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
+++ b/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
@@ -1783,7 +1783,7 @@ class ControlFlowTest(test.TestCase):
else:
self.assertFalse(gpu_dev_name in dev)
- with self.test_session(graph=graph) as sess:
+ with self.session(graph=graph) as sess:
self.assertAllClose(1024.0, sess.run(r))
def testWhileGrad_ColocateGradients(self):