Skip to content

Commit

Permalink
Fixed make no_optimization runs indefinitely when run the memcost exa…
Browse files Browse the repository at this point in the history
…mple provided (dmlc#126)

* fixed make no_optimization runs indefinitely when run the memcost example provided

* format plan_memory.cc
  • Loading branch information
zhuhyc authored and tqchen committed Jul 12, 2017
1 parent c96dd0e commit 1eea56e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pass/plan_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ Graph PlanMemory(Graph ret) {
ret.attrs["storage_num_not_allocated"] = std::make_shared<any>(storage_num_not_allocated);
min_allocated_bytes = storage_allocated_bytes;
}

if (max_match_range == 0) {
break;
}
}
return ret;
}
Expand Down

0 comments on commit 1eea56e

Please sign in to comment.