Browse Source

fix static checking warnings

tags/v1.0.0
BowenK 5 years ago
parent
commit
ed40ba05de
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      mindspore/ccsrc/frontend/optimizer/pattern.h
  2. +0
    -1
      mindspore/ccsrc/utils/scoped_long_running.h

+ 1
- 1
mindspore/ccsrc/frontend/optimizer/pattern.h View File

@@ -259,7 +259,7 @@ class MatchResult {
MatchResult() {}
~MatchResult() = default;
void add_entry(PatternPtr pattern, AnfNodePtr node) { match_result_[pattern] = node; }
PatternNodeMap &result() { return match_result_; }
const PatternNodeMap &result() { return match_result_; }
AnfNodePtr get_node(const PatternPtr &pattern);
void merge(const MatchResultPtr &other_result);
void clear() { match_result_.clear(); }


+ 0
- 1
mindspore/ccsrc/utils/scoped_long_running.h View File

@@ -21,7 +21,6 @@
#include <utility>

namespace mindspore {

// Base Class for scoped long running code.
// Enter() should release some global resoure, like Python GIL;
// Leave() should acquire the same global resource released.


Loading…
Cancel
Save