optimize scheduler performance

This commit is contained in:
jpc_chenjianping 2022-11-26 17:54:55 +08:00
parent d97b2f4e1a
commit 0b9a1d401b
1 changed files with 2 additions and 1 deletions

View File

@ -207,6 +207,8 @@ void KernelsActor::Run() {
return;
}
}
parallel_lite_actor_->CheckReadyActors(out_actors_indexs_);
if (have_output_) {
auto output_size = output_data_arrows_.size();
for (size_t i = 0; i < output_size; ++i) {
@ -219,6 +221,5 @@ void KernelsActor::Run() {
context->SetResult(index, RET_OK);
}
}
parallel_lite_actor_->CheckReadyActors(out_actors_indexs_);
}
} // namespace mindspore::lite