[Mlir-commits] [mlir] [MLIR][Linalg] pack, unpack to take memref inputs (PR #129036)
Han-Chung Wang
llvmlistbot at llvm.org
Fri Apr 18 16:25:59 PDT 2025
================
@@ -190,7 +190,30 @@ def Linalg_PackOp : Linalg_RelayoutOp<"pack", [
// Method to get the `RankedTensorType` of the result based on the inner
// tiles, position of the inner tiles (innerDimsPos) and interchange vector
// of outer loops (outerDimsPerm).
- static RankedTensorType inferPackedType(RankedTensorType sourceType,
+ /// This method uses inferPackedShape to ensure consistency with other shape
+ /// inference methods regarding which dimensions are dynamic.
+ static RankedTensorType inferPackedTensorType(RankedTensorType sourceType,
+ ArrayRef<int64_t> innerTileSizes, ArrayRef<int64_t> innerDimsPos,
+ ArrayRef<int64_t> outerDimsPerm = {});
+
+ // Method to get the `MemRefType` of the result based on the inner
+ // tiles, position of the inner tiles (innerDimsPos) and interchange vector
+ // of outer loops (outerDimsPerm).
+ /// This method uses inferPackedShape to ensure consistency with other shape
+ /// inference methods regarding which dimensions are dynamic.
----------------
hanhanW wrote:
same here
https://github.com/llvm/llvm-project/pull/129036
More information about the Mlir-commits
mailing list