[Mlir-commits] [llvm] [mlir] [MLIR] Generalize expand_shape to take shape as explicit input (PR #69267)

Benoit Jacob llvmlistbot at llvm.org
Thu Apr 18 08:11:18 PDT 2024


================
@@ -1598,14 +1593,10 @@ def MemRef_ExpandShapeOp : MemRef_ReassociativeReshapeOp<"expand_shape", [
     Example:
 
     ```mlir
-    %r = memref.expand_shape %0 [[0, 1], [2]]
-        : memref<?x?xf32> into memref<?x5x?xf32>
+    %r = memref.expand_shape %0 [[0, 1], [2]] [%sz0, %sz1, 32]
----------------
bjacob wrote:

I think this example is missing `output_shape` ?

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


More information about the Mlir-commits mailing list