Skip to content

Commit

Permalink
[Ansor][FLAKY] Bug fix for compute at mutation error (#6557)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcf94 authored Sep 25, 2020
1 parent 1a9dcf1 commit 8889c7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/auto_scheduler/search_policy/sketch_policy_rules.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ PopulationGenerationRule::ResultKind InitChangeComputeLocation::Apply(
}
}

*state = policy->search_task->compute_dag.InferBound(*state);
try {
*state = policy->search_task->compute_dag.InferBound(*state);
} catch (std::exception& e) {
return PopulationGenerationRule::ResultKind::kInvalid;
}
return PopulationGenerationRule::ResultKind::kValid;
}

Expand Down

0 comments on commit 8889c7a

Please sign in to comment.