MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FindInputArg

Function FindInputArg

tensorflow/core/framework/op_def_util.cc:168–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168const OpDef::ArgDef* FindInputArg(StringPiece name, const OpDef& op_def) {
169 for (int i = 0; i < op_def.input_arg_size(); ++i) {
170 if (op_def.input_arg(i).name() == name) {
171 return &op_def.input_arg(i);
172 }
173 }
174 return nullptr;
175}
176
177const ApiDef::Arg* FindInputArg(StringPiece name, const ApiDef& api_def) {
178 for (int i = 0; i < api_def.in_arg_size(); ++i) {

Callers 5

CodeMethod · 0.85
CodeMethod · 0.85
AddDocStringInputsMethod · 0.85
ProcessArgsMethod · 0.85
OpInfoMethod · 0.85

Calls 1

nameMethod · 0.65

Tested by

no test coverage detected