Skip to content

Commit

Permalink
Update plan_memory.cc (apache#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame authored and libing4752 committed Feb 18, 2019
1 parent 33e8546 commit a265d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/src/pass/plan_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a265d74

Please sign in to comment.