[Mlir-commits] [mlir] [mlir][tosa] Introduce accumulator type for `reduce_sum` on bf16 (PR #158389)
Georgios Pinitas
llvmlistbot at llvm.org
Sun Sep 14 05:11:48 PDT 2025
================
@@ -1324,8 +1349,8 @@ static LogicalResult reduceMatchAndRewriteHelper(OpTy op, uint64_t axis,
// since here we know which dimension to expand, and `tosa::ReshapeOp` would
// not have access to such information. This matters when handling dynamically
// sized tensors.
- rewriter.replaceOpWithNewOp<tensor::ExpandShapeOp>(
- op, resultTy, linalgOp->getResults()[0], reassociationMap);
+ rewriter.replaceOpWithNewOp<tensor::ExpandShapeOp>(op, resultTy, reducedRes,
+ reassociationMap);
----------------
GeorgeARM wrote:
Not sure. Just ran clang-format. The `reassociationMap` just ends to the line below while the other move above.
https://github.com/llvm/llvm-project/pull/158389
More information about the Mlir-commits
mailing list