Commit 14b44152 by zhuhyc Committed by Tianqi Chen

Fixed make no_optimization runs indefinitely when run the memcost example provided (#126)

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

* format plan_memory.cc
parent 5973da05
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment