Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
min fix of 'storage_type' index mismatch (#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 eric-haibin-lin committed Jun 8, 2019
1 parent c5874dd commit e01c386
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 e01c386

Please sign in to comment.