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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/framework/op_def_library.py b/tensorflow/python/framework/op_def_library.py
index cb79954226..7f2b03e350 100644
--- a/tensorflow/python/framework/op_def_library.py
+++ b/tensorflow/python/framework/op_def_library.py
@@ -618,8 +618,8 @@ class OpDefLibrary(object):
if input_arg.is_ref:
if not all(x._is_ref_dtype for x in types): # pylint: disable=protected-access
raise TypeError(
- "Input '%s' of '%s' Op requires l-value input" %
- (input_name, op_type_name))
+ ("'%s' Op requires that input '%s' be a mutable tensor " +
+ "(e.g.: a tf.Variable)") % (op_type_name, input_name))
input_types.extend(types)
else:
input_types.extend(base_types)