aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/op_def_util.h
diff options
context:
space:
mode:
authorGravatar Geoffrey Irving <geoffreyi@google.com>2016-04-21 15:40:45 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-04-21 16:52:12 -0700
commit18429eb67a947f9535e5e9755e8c469511af0d01 (patch)
tree4703ae5c37e364a924c7c5660dac8d09b1798d0d /tensorflow/core/framework/op_def_util.h
parent2c46a9ed5f6faaf9f3a407582dd657efa91c24ea (diff)
Check for op deprecation in C++ API and graph validation
The OP_DEPRECATION macro is now entirely gone, replaced with a CheckOpDeprecation function in op_def_util. Change: 120498757
Diffstat (limited to 'tensorflow/core/framework/op_def_util.h')
-rw-r--r--tensorflow/core/framework/op_def_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/framework/op_def_util.h b/tensorflow/core/framework/op_def_util.h
index 23da543e00..d99da4e852 100644
--- a/tensorflow/core/framework/op_def_util.h
+++ b/tensorflow/core/framework/op_def_util.h
@@ -28,6 +28,10 @@ namespace tensorflow {
// Performs a consistency check across the fields of the op_def.
Status ValidateOpDef(const OpDef& op_def);
+// Check if an op is deprecated at the given GraphDef version. If the op is
+// deprecated at a future version, a warning will be logged.
+Status CheckOpDeprecation(const OpDef& op_def, int graph_def_version);
+
// Validates that attr_value satisfies the type and constraints from attr.
// REQUIRES: attr has already been validated.
Status ValidateAttrValue(const AttrValue& attr_value,