Commit aedfaaec by ZhiWei Zhang Committed by Tianqi Chen

fixed #841 (#845)

* Update workspace_pool.cc

* Update workspace_pool.cc
parent 9206ee9c
...@@ -28,7 +28,10 @@ class WorkspacePool::Pool { ...@@ -28,7 +28,10 @@ class WorkspacePool::Pool {
nbytes = (nbytes + (kWorkspacePageSize - 1)) / kWorkspacePageSize * kWorkspacePageSize; nbytes = (nbytes + (kWorkspacePageSize - 1)) / kWorkspacePageSize * kWorkspacePageSize;
if (nbytes == 0) nbytes = kWorkspacePageSize; if (nbytes == 0) nbytes = kWorkspacePageSize;
Entry e; Entry e;
TVMType type = {.code = kDLUInt, .bits = 8, .lanes = 1}; TVMType type;
type.code = kDLUInt;
type.bits = 8;
type.lanes = 1;
if (free_list_.size() == 2) { if (free_list_.size() == 2) {
e = free_list_.back(); e = free_list_.back();
free_list_.pop_back(); free_list_.pop_back();
......
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