[Mlir-commits] [mlir] [mlir] [linalg] Add canonicalize pattern to swap transpose with broadcast (PR #97063)
Diego Caballero
llvmlistbot at llvm.org
Thu Jul 4 10:45:25 PDT 2024
================
@@ -243,6 +243,14 @@ SmallVector<int64_t>
computePermutationVector(int64_t permSize, ArrayRef<int64_t> positions,
ArrayRef<int64_t> desiredPositions);
+/// Returns a permutation vector that remove the result position in
+/// removePositions from inputPerm.
+///
+/// For example, inputPerm = {2, 4, 0, 1, 3} and removePositions = {1, 2} would
+/// result in a {2, 0, 1} permutation vector.
----------------
dcaballe wrote:
Is the result correct? Shouldn't this be `{2, 1, 3}` or am I getting this wrong?
https://github.com/llvm/llvm-project/pull/97063
More information about the Mlir-commits
mailing list