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

Method create_opdef

imperative/src/impl/ops/custom_opdef.cpp:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142std::shared_ptr<OpDef> CustomOpDefFactory::create_opdef(
143 const std::string& op_type) const {
144 auto op = ops->find(op_type);
145 return std::make_shared<CustomOpDef>(op);
146}
147
148std::shared_ptr<OpDef> CustomOpDefFactory::create_opdef(
149 const custom::RunTimeId& op_id) const {

Callers 1

make_custom_opFunction · 0.80

Calls 1

findMethod · 0.45

Tested by

no test coverage detected