From 45a383d6bc6421750743548081fa1614a6610167 Mon Sep 17 00:00:00 2001 From: Naoya Maruyama Date: Wed, 18 Dec 2024 19:35:26 -0800 Subject: [PATCH] Fix #3607 --- csrc/scheduler/transpose.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csrc/scheduler/transpose.cpp b/csrc/scheduler/transpose.cpp index 1db2a3cc85b..450513bd28c 100644 --- a/csrc/scheduler/transpose.cpp +++ b/csrc/scheduler/transpose.cpp @@ -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"); @@ -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; }