aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/eager/core_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/eager/core_test.py')
-rw-r--r--tensorflow/python/eager/core_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/python/eager/core_test.py b/tensorflow/python/eager/core_test.py
index 3fabe7060e..cc765725a4 100644
--- a/tensorflow/python/eager/core_test.py
+++ b/tensorflow/python/eager/core_test.py
@@ -610,6 +610,14 @@ class TFETest(test_util.TensorFlowTestCase):
self.assertEquals(typ, dtypes.float32)
self.assertIsInstance(t, ops.EagerTensor)
+ def testConvertMixedEagerTensorsWithVariables(self):
+ var = resource_variable_ops.ResourceVariable(1.0)
+ types, tensors = execute_lib.convert_to_mixed_eager_tensors(
+ ['foo', var], context.context())
+ self.assertAllEqual([dtypes.string, dtypes.float32], types)
+ for t in tensors:
+ self.assertIsInstance(t, ops.EagerTensor)
+
class SendRecvTest(test_util.TensorFlowTestCase):