- Handle error metadata properly in c_api_tfrt.
- Update is_async_ based on the EagerExecutor. - In async mode, don't report error synchronously PiperOrigin-RevId: 337341093 Change-Id: I60c2423b7677006f1a98a5e4eb9727e91cc42ebd
This commit is contained in:
parent
e2c2ef461b
commit
4a1f962ca2
@ -394,7 +394,6 @@ class OpsTest(test_util.TensorFlowTestCase, parameterized.TestCase):
|
||||
@parameterized.named_parameters(
|
||||
('Tensor', lambda: constant_op.constant(1.3+1j)),
|
||||
('Variable', lambda: resource_variable_ops.ResourceVariable(1.3+1j)))
|
||||
@test_util.disable_tfrt('cannot create complex tensor in TFRT.')
|
||||
def testCastToPrimitiveTypesFrom(self, value_fn):
|
||||
x = value_fn()
|
||||
self.assertIsInstance(int(x), int)
|
||||
@ -482,8 +481,8 @@ class OpsTest(test_util.TensorFlowTestCase, parameterized.TestCase):
|
||||
self.assertIs(weak_x(), None)
|
||||
self.assertIs(weak_y(), None)
|
||||
|
||||
@test_util.disable_tfrt('TFE_ContextGetExecutorForThread not implemented '
|
||||
'b/156188669')
|
||||
@test_util.disable_tfrt(
|
||||
'b/153697193: tfrt cannot decode python stacktrace yet')
|
||||
def testAsyncExceptionStackTrace(self):
|
||||
config.set_synchronous_execution(False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user