diff --git a/ge/graph/passes/common_subexpression_elimination_pass.cc b/ge/graph/passes/common_subexpression_elimination_pass.cc index 7d9724fc..3587b03e 100644 --- a/ge/graph/passes/common_subexpression_elimination_pass.cc +++ b/ge/graph/passes/common_subexpression_elimination_pass.cc @@ -26,9 +26,6 @@ namespace ge { namespace { -std::set un_compute_attrs = { - {ATTR_NAME_DATA_DUMP_ORIGIN_OP_NAMES}, -}; std::string GetCseKey(const NodePtr &node) { std::stringstream ss; @@ -53,7 +50,7 @@ std::string GetCseKey(const NodePtr &node) { ss << name << "-"; } - ss << "attrs-" << AttrUtils::GetAttrsStrAfterRid(node->GetOpDesc(), un_compute_attrs); + ss << "attrs-" << AttrUtils::GetAllAttrsStr(node->GetOpDesc()); return ss.str(); }