提交 798e6907 编写于 作者: Y Yu Yang

Change mem order

上级 1c2b6100
......@@ -752,7 +752,7 @@ void ParallelExecutor::Run(const std::vector<std::string> &fetch_tensors,
while (!pending_vars.empty()) {
VarHandleBase *ready_var = nullptr;
for (auto &pair : pending_vars) {
if (pair.second.load(std::memory_order_consume)) {
if (pair.second.load(std::memory_order_acquire)) {
ready_var = pair.first;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册