Skip to content

Commit

Permalink
min fix of 'storage_type' index mismatch (apache#14560)
Browse files Browse the repository at this point in the history
Index of array 'storage_type' should be indice of 'node entries',
not 'nodes'.

sign-of-by: [email protected]
  • Loading branch information
gssplayer authored and haohuw committed Jun 23, 2019
1 parent b5a1c80 commit dda5468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor/graph_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,8 @@ void GraphExecutor::InitDataEntryMemory(std::vector<NDArray>* shared_pool) {
for (uint32_t i = 0; i < idx[nid].source->num_outputs(); ++i) {
auto eid = idx.entry_id(nid, i);
data_context[eid] = vctx[nid];
CHECK_NE(vstorage_type[nid], kUndefinedStorage);
data_storage_type[eid] = (NDArrayStorageType) vstorage_type[nid];
CHECK_NE(vstorage_type[eid], kUndefinedStorage);
data_storage_type[eid] = (NDArrayStorageType) vstorage_type[eid];
}
}

Expand Down

0 comments on commit dda5468

Please sign in to comment.