MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / find

Method find

src/custom/impl/manager.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146std::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
154std::shared_ptr<const CustomOp> CustomOpManager::find(const RunTimeId& id) const {
155 auto ret = m_id2op.find(id);

Callers 15

_write_midoutMethod · 0.45
mainFunction · 0.45
formatMethod · 0.45
mainFunction · 0.45
get_dependenceFunction · 0.45
parseFunction · 0.45
init_graph_rtFunction · 0.45
init_tensorFunction · 0.45
mark_inputMethod · 0.45

Calls 1

endMethod · 0.45

Tested by 11

runMethod · 0.36
parse_dictFunction · 0.36
TESTFunction · 0.36
get_input_dataFunction · 0.36
mgb_larFunction · 0.36
TESTFunction · 0.36
convert_data_typeFunction · 0.36
ensure_init_graphMethod · 0.36
TESTFunction · 0.36
ensure_init_graphMethod · 0.36