Browse Source

Use the local deque as reference in lambda.

tags/v1.1.0
Zhang Qinghua 5 years ago
parent
commit
348bdf4352
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/core/ir/graph_utils.cc

+ 1
- 1
mindspore/core/ir/graph_utils.cc View File

@@ -61,7 +61,7 @@ std::vector<AnfNodePtr> TopoSort(const AnfNodePtr &root, const SuccFunc &succ, c
node->seen_ = seen;
if (incl == FOLLOW) {
auto succs = succ(node);
(void)std::copy_if(succs.begin(), succs.end(), std::back_inserter(todo), [seen, todo](const AnfNodePtr &next) {
(void)std::copy_if(succs.begin(), succs.end(), std::back_inserter(todo), [seen, &todo](const AnfNodePtr &next) {
if (next == nullptr || next->extra_seen_ == seen) {
return false;
}


Loading…
Cancel
Save