[Mlir-commits] [mlir] [mlir][linalg] Update pack and unpack documentation (PR #143903)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Thu Jun 12 14:41:03 PDT 2025
================
@@ -94,11 +94,13 @@ def Linalg_PackOp : Linalg_RelayoutOp<"pack", [
and optionally transposes the tiled source tensor dimensions.
`inner_dims_pos` (mandatory) specifies `k` source tensor dimensions that are
- being tiled, where `0 < k <= n`. The order of the dimensions matters:
- - The tiled dimensions (of size `inner_tiles`) are added to the end of the result
- tensor in the order in which they appear in `inner_dims_pos`.
----------------
banach-space wrote:
I find this particular sentence helpful. Would you mind keeping it? You could rewrite it using code: `shape(result)[rank(result) + i] = inner_tiles[i]` for 0 <= i < k.
https://github.com/llvm/llvm-project/pull/143903
More information about the Mlir-commits
mailing list