[Mlir-commits] [mlir] [mlir][tosa] Change Transpose perms operand to attribute (PR #128115)
Georgios Pinitas
llvmlistbot at llvm.org
Mon Feb 24 10:17:27 PST 2025
================
@@ -607,9 +602,9 @@ void TosaReduceTransposes::runOnOperation() {
!llvm::isa<RankedTensorType>(output.getType()))
return;
- // No transformation when transpose permutation non-constant.
- if (failed(transposeOp.getConstantPerms(perms)))
- return;
+ for (int32_t v : transposeOp.getPerms()) {
----------------
GeorgeARM wrote:
Can;t we use range assignment/emplace here?
https://github.com/llvm/llvm-project/pull/128115
More information about the Mlir-commits
mailing list