Do not wait computation stream

helinwang-patch-1
Yu Yang 7 years ago
parent 7ac969b88c
commit 90f980167d

@ -782,10 +782,6 @@ void ParallelExecutor::Run(const std::vector<std::string> &fetch_tensors,
} }
} }
for (auto &p : member_->places_) {
platform::DeviceContextPool::Instance().Get(p)->Wait();
}
for (auto &fetch_op : fetch_ops) { for (auto &fetch_op : fetch_ops) {
fetch_op.WaitAndMergeCPUTensors(); fetch_op.WaitAndMergeCPUTensors();
} }

Loading…
Cancel
Save