aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/eager/function_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/eager/function_test.py')
-rw-r--r--tensorflow/python/eager/function_test.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tensorflow/python/eager/function_test.py b/tensorflow/python/eager/function_test.py
index e46bde098b..953f4300cf 100644
--- a/tensorflow/python/eager/function_test.py
+++ b/tensorflow/python/eager/function_test.py
@@ -1841,11 +1841,10 @@ class FunctionTest(test.TestCase):
# pylint: disable=protected-access
self.assertEqual(len(graph._functions), 3)
- # Test input param shape mismatch
- t2 = constant_op.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
- with self.assertRaisesRegexp(
- ValueError, 'Python inputs incompatible with input_signature'):
- function.register(defun_matmul, t2, t2)
+ # Test register function with cache, note inputs are ignored.
+ function.register(defun_matmul)
+ graph = ops.get_default_graph()
+ self.assertEqual(len(graph._functions), 3)
def testRegisterFunctionWithCache(self):
def matmul(x, y):