| 155 | } |
| 156 | |
| 157 | std::string BuildInputKey(const std::string& node_name, |
| 158 | const std::vector<EdgeDef>& input_edges) { |
| 159 | std::string key = node_name; |
| 160 | for (const EdgeDef& e : input_edges) { |
| 161 | std::string e_str = ToString(e.src_id_, "_", e.src_slot_); |
| 162 | key = ToString(key, ",", e_str); |
| 163 | } |
| 164 | return key; |
| 165 | } |
| 166 | |
| 167 | void Optimizer::CommonSubexpressionElimination(DAGDef* dag) { |
| 168 | std::unordered_set<std::string> op_name_set({"ID_SPLIT", "ID_UNIQUE"}); |
no test coverage detected