| 214 | } |
| 215 | |
| 216 | size_t hash(const OpDef& def) { |
| 217 | auto&& op = static_cast<const CustomOpDef&>(def); |
| 218 | const custom::Param& param = op.param(); |
| 219 | size_t val = mgb::hash(op.runtime_id()); |
| 220 | std::string hash_str = ""; |
| 221 | for (auto&& val : param.raw()) { |
| 222 | hash_str += val.first; |
| 223 | hash_str += val.second.str(); |
| 224 | } |
| 225 | |
| 226 | val = mgb::hash_pair_combine(val, mgb::hash(hash_str)); |
| 227 | return val; |
| 228 | } |
| 229 | |
| 230 | bool is_same_st(const OpDef& lhs, const OpDef& rhs) { |
| 231 | auto &&a = static_cast<const CustomOpDef&>(lhs), |
nothing calls this directly
no test coverage detected