aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/cc
diff options
context:
space:
mode:
authorGravatar Nick Kreeger <kreeger@google.com>2018-08-17 14:26:35 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-17 14:31:18 -0700
commitc4ccab7a95835ec12af16938ba0c17cc7c1f17e0 (patch)
treea1144890c0eaeda823fac1272a6326939ec97491 /tensorflow/cc
parentf67c02ce213e0420d91de61f896f1716a4943e7e (diff)
Move FindInputArg() for ApiDef::Arg to op_def_util.cc and cleanup Python/c++ references.
This method is currently duplicated in Python code and will be used for TypeScript generation. PiperOrigin-RevId: 209207139
Diffstat (limited to 'tensorflow/cc')
-rw-r--r--tensorflow/cc/framework/cc_op_gen.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/tensorflow/cc/framework/cc_op_gen.cc b/tensorflow/cc/framework/cc_op_gen.cc
index dfdef88945..c20ea95a15 100644
--- a/tensorflow/cc/framework/cc_op_gen.cc
+++ b/tensorflow/cc/framework/cc_op_gen.cc
@@ -508,15 +508,6 @@ bool HasOptionalAttrs(
return false;
}
-const ApiDef::Arg* FindInputArg(StringPiece name, const ApiDef& api_def) {
- for (int i = 0; i < api_def.in_arg_size(); ++i) {
- if (api_def.in_arg(i).name() == name) {
- return &api_def.in_arg(i);
- }
- }
- return nullptr;
-}
-
struct OpInfo {
// graph_op_def: The OpDef used by the runtime, has the names that
// must be used when calling NodeBuilder.