Skip to content

Commit

Permalink
Why dims has the same size as outer_dims?
Browse files Browse the repository at this point in the history
  • Loading branch information
antonysigma committed Sep 5, 2024
1 parent 26b3cec commit 06a6219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autoschedulers/mullapudi2016/AutoSchedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3302,8 +3302,8 @@ void Partitioner::generate_group_cpu_schedule(
}

// Find the level at which group members will be computed.
internal_assert(dims.size() > outer_dims.size());
const auto tile_inner_index = dims.size() - outer_dims.size() - 1;
internal_assert(dims.size() >= outer_dims.size());
const auto tile_inner_index = std::max(int(dims.size() - outer_dims.size()) - 1, 0);
VarOrRVar tile_inner_var(Var::outermost());
if (!outer_dims.empty()) {
string var_name = get_base_name(dims[tile_inner_index].var);
Expand Down

0 comments on commit 06a6219

Please sign in to comment.