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

Function FindAttrMutable

tensorflow/core/framework/op_def_util.cc:159–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159OpDef::AttrDef* FindAttrMutable(StringPiece name, OpDef* op_def) {
160 for (int i = 0; i < op_def->attr_size(); ++i) {
161 if (op_def->attr(i).name() == name) {
162 return op_def->mutable_attr(i);
163 }
164 }
165 return nullptr;
166}
167
168const OpDef::ArgDef* FindInputArg(StringPiece name, const OpDef& op_def) {
169 for (int i = 0; i < op_def.input_arg_size(); ++i) {

Callers 1

FinalizeInputOrOutputFunction · 0.85

Calls 2

attrMethod · 0.80
nameMethod · 0.65

Tested by

no test coverage detected