Commit 390b7445 by 雾雨魔理沙 Committed by Tianqi Chen

Update plan_memory.cc (#2574)

parent 4b743676
......@@ -274,7 +274,7 @@ size_t AllocMemory(const Graph& ret, const IndexedGraph& idx,
auto sid = storage[eid];
// storage_ref_count == 0 means it is taken by inplace op
if (sid < 0) continue;
// if we decrease it to zero, means we are ready to relase
// if we decrease it to zero, we are ready to relase
--storage_ref_count[sid];
if (storage_ref_count[sid] == 0) {
allocator->Release(sid, nid);
......
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