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

Method to_name

src/custom/impl/manager.cpp:141–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141std::string CustomOpManager::to_name(const RunTimeId& id) const {
142 std::shared_ptr<const CustomOp> op = find(id);
143 return op->op_type();
144}
145
146std::shared_ptr<const CustomOp> CustomOpManager::find(const std::string& name) const {
147 auto ret = m_name2op.find(name);

Callers 1

TESTFunction · 0.80

Calls 2

findFunction · 0.50
op_typeMethod · 0.45

Tested by 1

TESTFunction · 0.64