未验证 提交 9c1aa6c7 编写于 作者: L Leo Chen 提交者: GitHub

fix bug that Op with id 0 can not be lauched (#45577)

上级 ce4775cd
......@@ -821,11 +821,11 @@ void InterpreterCore::RunNextInstructions(
}
auto direct_run_ops = interpreter::merge_vector(next_instr.SyncRunIds(),
next_instr.DirectRunIds());
size_t first_op = 0;
int64_t first_op = -1;
for (auto next_id : direct_run_ops) {
if (IsReady(next_id)) {
// only keep one op running in current thread
if (first_op == 0) {
if (first_op == -1) {
first_op = next_id;
continue;
}
......@@ -837,7 +837,7 @@ void InterpreterCore::RunNextInstructions(
});
}
}
if (first_op != 0) reserved_next_ops->push(first_op);
if (first_op != -1) reserved_next_ops->push(first_op);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册