diff options
Diffstat (limited to 'tensorflow/cc/ops')
-rw-r--r-- | tensorflow/cc/ops/cc_op_gen.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/cc/ops/cc_op_gen.cc b/tensorflow/cc/ops/cc_op_gen.cc index 3f0d034ff2..b29f7360c6 100644 --- a/tensorflow/cc/ops/cc_op_gen.cc +++ b/tensorflow/cc/ops/cc_op_gen.cc @@ -94,6 +94,11 @@ void WriteCCOp(const OpDef& op_def, WritableFile* h, WritableFile* cc) { comment = "TODO: add doc.\n"; } else { comment = strings::StrCat(op_def.summary(), "\n"); + if (op_def.has_deprecation()) { + strings::StrAppend(&comment, "\nDEPRECATED at GraphDef version ", + op_def.deprecation().version(), ":\n", + op_def.deprecation().explanation(), ".\n"); + } if (!op_def.description().empty()) { strings::StrAppend(&comment, "\n", op_def.description(), "\n"); } |