Skip to content

Commit

Permalink
Fix for i386.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxybazh committed Mar 3, 2022
1 parent 166834c commit 01c22c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meta_schedule/task_scheduler/gradient_based.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ TaskScheduler TaskScheduler::GradientBased(Array<TuneContext> tasks,
std::string tag = tag_generation_func(mod);

if (tag_to_group.find(tag) == tag_to_group.end()) {
tag_to_group[tag] = tag_to_group.size();
int group_cnt = tag_to_group.size();
tag_to_group[tag] = group_cnt;
n->task_groups.push_back(std::set<int>());
}
int group_id = tag_to_group[tag];
Expand Down

0 comments on commit 01c22c3

Please sign in to comment.