From 2c27970adc1615ef4ec294c0afa99952dced0f57 Mon Sep 17 00:00:00 2001 From: zhou_lili Date: Sat, 23 Jan 2021 17:22:55 +0800 Subject: [PATCH] delete white list of cse --- ge/graph/passes/common_subexpression_elimination_pass.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); }