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

Function FindAttr

tensorflow/core/framework/op_def_util.cc:150–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150const OpDef::AttrDef* FindAttr(StringPiece name, const OpDef& op_def) {
151 for (int i = 0; i < op_def.attr_size(); ++i) {
152 if (op_def.attr(i).name() == name) {
153 return &op_def.attr(i);
154 }
155 }
156 return nullptr;
157}
158
159OpDef::AttrDef* FindAttrMutable(StringPiece name, OpDef* op_def) {
160 for (int i = 0; i < op_def->attr_size(); ++i) {

Callers 7

FinalizeInputOrOutputFunction · 0.70
ValidateArgFunction · 0.70
GetDataTypeMethod · 0.70
AddNodeMethod · 0.50
AllowedDataTypesFunction · 0.50

Calls 2

attrMethod · 0.80
nameMethod · 0.65

Tested by

no test coverage detected