MCPcopy Create free account
hub / github.com/OAID/Tengine / AddOpAttr

Method AddOpAttr

core/lib/operator_manager.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool OpManager::AddOpAttr(const std::string& op_name, const std::string& attr_name, const any& val)
46{
47 Operator* op;
48
49 if(!SafeGet(op_name, op))
50 return false;
51
52 op->SetAttr(attr_name, val);
53
54 return true;
55}
56
57bool OpManager::RemoveOpAttr(const std::string& op_name, const std::string& attr_name)
58{

Callers

nothing calls this directly

Calls 1

SetAttrMethod · 0.45

Tested by

no test coverage detected