[Mlir-commits] [mlir] [mlir][linalg] Update pack and unpack documentation (PR #143903)

Christopher McGirr llvmlistbot at llvm.org
Thu Jun 26 05:51:59 PDT 2025


================
@@ -1824,6 +1824,17 @@ func.func @unpack_invalid_outer_dims_perm(%source: tensor<128x256xf32>, %dest: t
 
 // -----
 
+// Here we have the source tensor being tiled as: `source[1] / 32` and `source[0] / 16` but the inner_dims_pos does not imply
+// a transpose of the outer dimensions for the result tensor. The tiled dimensions appear in the result tensor in the order
+// they appear in the source tensor, i.e. 16x4x32x16
----------------
chrsmcgrr wrote:

This example was more to reinforce what the operation does because reading from the documentation I found it difficult to follow the semantics. With the inter-play between `inner_dims_pos`, `inner_tiles` and `outer_dims_perm`. 

I can remove the example if you like. 

https://github.com/llvm/llvm-project/pull/143903


More information about the Mlir-commits mailing list