| 144 | } |
| 145 | |
| 146 | std::shared_ptr<const CustomOp> CustomOpManager::find(const std::string& name) const { |
| 147 | auto ret = m_name2op.find(name); |
| 148 | mgb_assert( |
| 149 | ret != m_name2op.end(), |
| 150 | "Find Custom Op Failed! Op %s has not been registered", name.c_str()); |
| 151 | return ret->second; |
| 152 | } |
| 153 | |
| 154 | std::shared_ptr<const CustomOp> CustomOpManager::find(const RunTimeId& id) const { |
| 155 | auto ret = m_id2op.find(id); |