| 43 | } |
| 44 | |
| 45 | bool 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 | |
| 57 | bool OpManager::RemoveOpAttr(const std::string& op_name, const std::string& attr_name) |
| 58 | { |