!27299 Fix run condition for branch id.

Merge pull request !27299 from gaoyong10/runtime_second12
This commit is contained in:
i-robot 2021-12-06 18:56:03 +00:00 committed by Gitee
commit 0380df75e7
1 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ bool StackActor::CheckRunningCondition(const OpContext<DeviceTensor> *context) c
return false;
}
if (!is_branch_id_available) {
if (is_branch_id_available) {
MS_LOG(ERROR) << "There is no branch id for actor:" << GetAID().Name();
return false;
}
@ -208,7 +208,7 @@ bool StackActor::CheckRunningCondition(const OpContext<DeviceTensor> *context) c
return false;
}
if (!is_branch_id_available) {
if (is_branch_id_available) {
MS_LOG(ERROR) << "There is no branch id for actor:" << GetAID().Name();
return false;
}
@ -228,7 +228,7 @@ bool StackActor::CheckRunningCondition(const OpContext<DeviceTensor> *context) c
return false;
}
if (!is_branch_id_available) {
if (is_branch_id_available) {
MS_LOG(ERROR) << "There is no branch id for actor:" << GetAID().Name();
return false;
}