| 912 | } |
| 913 | |
| 914 | uint64_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 |
| 923 | std::shared_ptr<json::Value> OprFootprint::get_param_json(cg::OperatorNodeBase* opr) { |
no test coverage detected