Skip to content

Commit

Permalink
fix (apache#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong authored Apr 18, 2017
1 parent d3558db commit b279286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pass/plan_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ size_t AllocMemory(const Graph& ret, const IndexedGraph& idx, StorageVector* sto
if (ref_count[eid_in] == 1 &&
ref_count[eid_out] != 0 &&
storage[eid_out] == GraphAllocator::kBadStorageID &&
storage[eid_in] != GraphAllocator::kBadStorageID &&
storage[eid_in] >= 0 &&
shape_vec[eid_out].Size() == shape_vec[eid_in].Size() &&
dtype_vec[eid_out] == dtype_vec[eid_in]) {
// inplace optimization
Expand Down

0 comments on commit b279286

Please sign in to comment.