Browse Source

!15465 [GraphKernal] Use ReduceSimplify2 only

From: @lingyunli63
Reviewed-by: @gaoxiong1,@anyrenwei
Signed-off-by: @anyrenwei
pull/15465/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
2b349dbf53
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/optimizer/graph_kernel/arithmetic_simplify.cc

+ 1
- 1
mindspore/ccsrc/backend/optimizer/graph_kernel/arithmetic_simplify.cc View File

@@ -725,7 +725,7 @@ AnfNodePtr SimplifyReduce3(const AnfNodePtr &node) {
}

AnfNodePtr TrySimplify(const AnfNodePtr &node) {
std::list<std::function<AnfNodePtr(const AnfNodePtr &)>> SimplifyFuncList = {SimplifyReduce1};
std::list<std::function<AnfNodePtr(const AnfNodePtr &)>> SimplifyFuncList = {SimplifyReduce2};
for (auto f : SimplifyFuncList) {
auto ret = f(node);
if (ret != nullptr) {


Loading…
Cancel
Save