[Mlir-commits] [mlir] [mlir][linalg] Update pack and unpack documentation (PR #143903)
Christopher McGirr
llvmlistbot at llvm.org
Thu Jun 26 00:35:16 PDT 2025
================
@@ -117,6 +119,16 @@ def Linalg_PackOp : Linalg_RelayoutOp<"pack", [
into %dest : tensor<128x256xf32> -> tensor<16x8 x 8x32 xf32>
// \ / \ /
// outer dims inner dims
+ // CHW to CHWhw
+ %0 = linalg.pack %source inner_dims_pos = [2, 1] inner_tiles = [4, 2]
+ into %dest : tensor<1x8x16xf32> -> tensor<1x2x4 x 4x2 xf32>
----------------
chrsmcgrr wrote:
You are right the shape is incorrect. I will update the examples to have more unique dimensions and check each example.
https://github.com/llvm/llvm-project/pull/143903
More information about the Mlir-commits
mailing list