MCPcopy Create free account
hub / github.com/alibaba/euler / BuildInputKey

Function BuildInputKey

euler/parser/optimizer.cc:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157std::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
167void Optimizer::CommonSubexpressionElimination(DAGDef* dag) {
168 std::unordered_set<std::string> op_name_set({"ID_SPLIT", "ID_UNIQUE"});

Callers 1

Calls 1

ToStringFunction · 0.85

Tested by

no test coverage detected