diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-24 10:18:04 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-24 10:25:11 -0700 |
commit | fbd6ea27dbdc7eb00db60e643d3b3ee5f1985c26 (patch) | |
tree | aacf20a3b664132c6f58942b55182ee41893c4f9 /tensorflow/python/kernel_tests/control_flow_ops_py_test.py | |
parent | 77d56a08826826db3350968f19070434fa922995 (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.py | 2 |
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): |