[Mlir-commits] [mlir] [mlir][tosa] Change 'shape' of RESHAPE from attribute to input shape … (PR #125789)

Georgios Pinitas llvmlistbot at llvm.org
Fri Feb 7 09:40:49 PST 2025


================
@@ -1335,8 +1335,16 @@ LogicalResult tosa::ReshapeOp::inferReturnTypeComponents(
     SmallVectorImpl<ShapedTypeComponents> &inferredReturnShapes) {
   ShapeAdaptor inputShape(adaptor.getInput1().getType());
   Type inputType = getElementTypeOrSelf(adaptor.getInput1().getType());
-  llvm::SmallVector<int64_t> newShapeValue =
-      convertToMlirShape(adaptor.getNewShape());
+  llvm::SmallVector<int64_t> newShapeValue;
----------------
GeorgeARM wrote:

I find this two-stage setup for the shape obscure. Would prefer an optional but probably worth a separate patch

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


More information about the Mlir-commits mailing list