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

Method get_computation

src/plugin/impl/opr_footprint.cpp:914–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914uint64_t OprFootprint::get_computation(cg::OperatorNodeBase* opr) {
915 auto comp_trait = m_type2comp_footprint.find(opr->dyn_typeinfo());
916 if (comp_trait != m_type2comp_footprint.end()) {
917 return (comp_trait->second)(opr);
918 }
919 return 0;
920}
921
922#if MGB_ENABLE_JSON
923std::shared_ptr<json::Value> OprFootprint::get_param_json(cg::OperatorNodeBase* opr) {

Callers 2

search_refineMethod · 0.80
ProfilerImplMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected