Browse Source

!15965 [GraphKernel]clean code

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

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

@@ -550,7 +550,8 @@ ShapeVector GetNodeShape(const AnfNodePtr &node) {

std::vector<std::pair<int64_t, int64_t>> GetUnmodifiedDim(const ShapeVector &a, const ShapeVector &b) {
std::vector<std::pair<int64_t, int64_t>> unmodified;
for (size_t i = 0, j = 0, patial_a = 1, patial_b = 1;;) {
int64_t patial_a = 1, patial_b = 1;
for (size_t i = 0, j = 0;;) {
if (i >= a.size() && j >= b.size()) {
break;
}


Loading…
Cancel
Save