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-05-16 18:05:52 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-16 18:09:22 -0700
commitd335efbaac98bfa974eea77bbc63d56101031477 (patch)
treef17207d89b4d06137a60f6f129a29d3b514bbf92 /tensorflow/python/kernel_tests/control_flow_ops_py_test.py
parent0c33e1ff58e121a0cf6acdb6aeb8de53cb3abf25 (diff)
Remove _USE_C_API staging in tests now that the C API is enabled by default.
This is in preparation for removing the _USE_C_API toggle altogether. PiperOrigin-RevId: 196920890
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.py7
1 files changed, 0 insertions, 7 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 843759fed0..68873df97e 100644
--- a/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
+++ b/tensorflow/python/kernel_tests/control_flow_ops_py_test.py
@@ -38,7 +38,6 @@ from tensorflow.python.framework import function
from tensorflow.python.framework import ops
from tensorflow.python.framework import sparse_tensor
from tensorflow.python.framework import tensor_shape
-from tensorflow.python.framework import test_util
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import data_flow_ops
@@ -123,7 +122,6 @@ def isum(s, maximum_iterations=None):
return r_s
-@test_util.with_c_api
class ControlFlowTest(test.TestCase):
def testRefIdentity(self):
@@ -2947,7 +2945,6 @@ class ControlFlowTest(test.TestCase):
1)
-@test_util.with_c_api
class ControlFlowContextCheckTest(test.TestCase):
def _getWhileTensor(self):
@@ -3067,7 +3064,6 @@ class ControlFlowContextCheckTest(test.TestCase):
math_ops.less(1, 2), true_fn, lambda: constant_op.constant(0))
-@test_util.with_c_api
class TupleTest(test.TestCase):
def testTensors(self):
@@ -3153,7 +3149,6 @@ class TupleTest(test.TestCase):
self.assertEquals(1, var.eval())
-@test_util.with_c_api
class AssertTest(test.TestCase):
def testGuardedAssertDoesNotCopyWhenTrue(self):
@@ -3193,7 +3188,6 @@ class AssertTest(test.TestCase):
self.assertEqual([], guarded_memcpy_nodestat_names)
-@test_util.with_c_api
class WhileOpBenchmark(test.Benchmark):
"""Evaluate the performance of while_loop op."""
@@ -3308,7 +3302,6 @@ class WhileOpBenchmark(test.Benchmark):
name="unroll_same_device", iters=iters, wall_time=duration)
-@test_util.with_c_api
class EagerTest(test.TestCase):
def testCond(self):