aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/op_def_util.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-05-23 08:51:49 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-05-23 10:03:40 -0700
commitac04b7ced3806b8a404c8411b3a120155d360ed1 (patch)
treece0984d952210b2da1476a492fe41f9e6f8fa1d4 /tensorflow/core/framework/op_def_util.cc
parenta20408ecd4869c4abf9b16a132ea6b81b715c0d6 (diff)
Include the Op name in the warning log message stating that an Op is deprecated. Otherwise, its hard to know what Op the message refers to.
Change: 123007172
Diffstat (limited to 'tensorflow/core/framework/op_def_util.cc')
-rw-r--r--tensorflow/core/framework/op_def_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/framework/op_def_util.cc b/tensorflow/core/framework/op_def_util.cc
index 73666cba14..071312347a 100644
--- a/tensorflow/core/framework/op_def_util.cc
+++ b/tensorflow/core/framework/op_def_util.cc
@@ -329,7 +329,7 @@ Status CheckOpDeprecation(const OpDef& op_def, int graph_def_version) {
warn = warned.insert(op_def.name()).second;
}
if (warn) {
- LOG(WARNING) << "Op is deprecated."
+ LOG(WARNING) << "Op " << op_def.name() << " is deprecated."
<< " It will cease to work in GraphDef version "
<< dep.version() << ". " << dep.explanation() << ".";
}