We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc3f0f3 commit 18219bfCopy full SHA for 18219bf
lib/Dialect/Triton/IR/Ops.cpp
@@ -529,6 +529,8 @@ struct CanonicalizeReshapeReduceOpPattern final : OpRewritePattern<ReduceOp> {
529
reshapes.begin(),
530
[loc = reduceOp.getLoc(), &rewriter](auto pair) -> Value {
531
auto &[value, resultType] = pair;
532
+ // Set allow_reorder despite being a NOP to support different kinds of
533
+ // tensor layouts.
534
return rewriter.create<ReshapeOp>(loc, resultType, value,
535
/*allow_reorder=*/true);
536
});
0 commit comments