Browse Source

delete white list of cse

tags/v1.2.0
zhou_lili 3 years ago
parent
commit
2c27970adc
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      ge/graph/passes/common_subexpression_elimination_pass.cc

+ 1
- 4
ge/graph/passes/common_subexpression_elimination_pass.cc View File

@@ -26,9 +26,6 @@

namespace ge {
namespace {
std::set<std::string> 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();
}


Loading…
Cancel
Save