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

Function FindAttr

tensorflow/python/framework/python_op_gen_internal.cc:497–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497const ApiDef::Attr* FindAttr(StringPiece name, const ApiDef& api_def) {
498 for (int i = 0; i < api_def.attr_size(); ++i) {
499 if (api_def.attr(i).name() == name) {
500 return &api_def.attr(i);
501 }
502 }
503 return nullptr;
504}
505
506GenPythonOp::GenPythonOp(const OpDef& op_def, const ApiDef& api_def,
507 const string& function_name)

Callers 3

GetEagerFunctionSetupMethod · 0.70
ArgTypeNameFunction · 0.70
AddDocStringAttrsMethod · 0.70

Calls 2

attrMethod · 0.80
nameMethod · 0.65

Tested by

no test coverage detected