Skip to content

Commit

Permalink
Skip applying sch_rule when both ann and sch_rule are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Apr 12, 2022
1 parent 7b3d71c commit 4915c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta_schedule/space_generator/post_order_apply.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class PostOrderApplyNode : public SpaceGeneratorNode {
<< ann.value();
}

if ((!sch_rule.defined() && !has_schedule_rule) ||
if ((ann.defined() && sch_rule.defined()) || (!has_schedule_rule && !sch_rule.defined()) ||
(ann.defined() && ann.value() == "None")) {
stack.emplace_back(sch, blocks);
continue;
Expand Down

0 comments on commit 4915c6a

Please sign in to comment.