[Mlir-commits] [mlir] [mlir][Transforms] Add missing check in applyPermutation (PR #102099)
donald chen
llvmlistbot at llvm.org
Thu Aug 8 05:59:20 PDT 2024
================
@@ -1116,6 +1116,12 @@ LogicalResult tosa::TransposeOp::verify() {
"Unexpectedly found permutation tensor without rank");
if (!isPermutationVector(constantPerms))
return emitOpError() << "expected valid permutation tensor";
+
+ if (inputType.hasRank() && (!inputType.getNumDynamicDims()) &&
----------------
cxy-1993 wrote:
why no dynamic dims?
https://github.com/llvm/llvm-project/pull/102099
More information about the Mlir-commits
mailing list