From e79e90cb04fb453b7ed023295007bdb02fde61da Mon Sep 17 00:00:00 2001 From: Chuanhao Zhuge Date: Tue, 29 Sep 2020 22:19:46 -0700 Subject: [PATCH] Implement error code in TFRT and propagate proper error code to c_api_tfrt. PiperOrigin-RevId: 334529554 Change-Id: I96c058f8971b150d2cbb9ee7e9ba91c718a4b505 --- tensorflow/python/kernel_tests/constant_op_eager_test.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tensorflow/python/kernel_tests/constant_op_eager_test.py b/tensorflow/python/kernel_tests/constant_op_eager_test.py index 06a0d02e48b..589540fd886 100644 --- a/tensorflow/python/kernel_tests/constant_op_eager_test.py +++ b/tensorflow/python/kernel_tests/constant_op_eager_test.py @@ -581,13 +581,11 @@ class FillTest(test.TestCase): tf_ans = array_ops.fill([2, 3], np_ans[0][0], name="fill").numpy() self.assertAllEqual(np_ans, tf_ans) - @test_util.disable_tfrt("support error code in TFRT.") def testFillNegative(self): for shape in (-1,), (2, -1), (-1, 2), (-2), (-3): with self.assertRaises(errors_impl.InvalidArgumentError): array_ops.fill(shape, 7) - @test_util.disable_tfrt("support error code in TFRT.") def testShapeFunctionEdgeCases(self): # Non-vector dimensions. with self.assertRaises(errors_impl.InvalidArgumentError):