[Mlir-commits] [mlir] [mlir][tosa] Fix ability to expand ranks with dynamic shape support (PR #128037)

Suraj Sudhir llvmlistbot at llvm.org
Mon Feb 24 13:19:33 PST 2025


================
@@ -88,9 +88,9 @@ computeReshapeOutput(ArrayRef<int64_t> higherRankShape,
     higherRankDim = higherRankShape[i];
     lowerRankDim = lowerRankShape[j];
 
-    if (lowerRankDim == 1 && higherRankDim > 1)
+    if (lowerRankDim == 1 && higherRankDim != 1)
----------------
sjarus wrote:

The use of != 1 accommodates the use of kDynamicDim . 

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


More information about the Mlir-commits mailing list