Skip to content

Commit

Permalink
Fix #3607
Browse files Browse the repository at this point in the history
  • Loading branch information
naoyam committed Dec 19, 2024
1 parent 9fbbf8e commit 45a383d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions csrc/scheduler/transpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ bool TransposeScheduler::canScheduleCompileTime(Fusion* fusion) {
}
}

if (!hasAtLeastTwoValidGroups(fusion)) {
scheduler_debug_utils::canScheduleRejectReason(
schedulerType(), "cannot find two mismatching inner most dimensions");
return false;
}

if (ir_utils::hasAnyReductionOps(fusion)) {
scheduler_debug_utils::canScheduleRejectReason(
schedulerType(), "no support for reduction ops");
Expand All @@ -87,6 +81,12 @@ bool TransposeScheduler::canScheduleCompileTime(Fusion* fusion) {
return false;
}

if (!hasAtLeastTwoValidGroups(fusion)) {
scheduler_debug_utils::canScheduleRejectReason(
schedulerType(), "cannot find two mismatching inner most dimensions");
return false;
}

return true;
}

Expand Down

0 comments on commit 45a383d

Please sign in to comment.