aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework/op_def_library.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/framework/op_def_library.py')
-rw-r--r--tensorflow/python/framework/op_def_library.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/python/framework/op_def_library.py b/tensorflow/python/framework/op_def_library.py
index e85bba11cd..9955a9a2cd 100644
--- a/tensorflow/python/framework/op_def_library.py
+++ b/tensorflow/python/framework/op_def_library.py
@@ -482,7 +482,8 @@ class OpDefLibrary(object):
else:
raise TypeError("%s that don't all match." % prefix)
else:
- raise TypeError("%s that are invalid." % prefix)
+ raise TypeError(
+ "%s that are invalid. Tensors: %s" % (prefix, values))
types = [x.dtype for x in values]
inputs.extend(values)