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

Method to_id

src/custom/impl/manager.cpp:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136RunTimeId CustomOpManager::to_id(const std::string& name) const {
137 std::shared_ptr<const CustomOp> op = find(name);
138 return op->runtime_id();
139}
140
141std::string CustomOpManager::to_name(const RunTimeId& id) const {
142 std::shared_ptr<const CustomOp> op = find(id);

Callers 1

TESTFunction · 0.80

Calls 2

findFunction · 0.50
runtime_idMethod · 0.45

Tested by 1

TESTFunction · 0.64