Skip to content

Commit

Permalink
[MetaSchedule] use Schedule::Copy to make copy
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJH5574 committed Mar 3, 2021
1 parent 14cf343 commit 6d2f93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta_schedule/space/search_rule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ class RuleAddRfactor {
const Array<LoopRV>& split_res = sch->Split(fused_reduce_loop, {NullOpt, Integer(1)});
Array<Schedule> res;
for (const LoopRV& split_loop : split_res) {
const Schedule& sch_tmp = sch;
Schedule sch_tmp = sch->Copy(sch->sampler.ForkSeed());
const BlockRV& block_rf = sch_tmp->RFactor(split_loop, num_spatial_loops);
Array<LoopRV> axes = sch_tmp->GetAxes(block_rf);
CHECK_GT(static_cast<int>(axes.size()), num_spatial_loops);
Expand Down

0 comments on commit 6d2f93b

Please sign in to comment.