[Mlir-commits] [mlir] [tosa] : Enhance EqualizeRanks to handle dynamic dimensions. (PR #168564)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Nov 18 10:35:52 PST 2025
================
@@ -87,7 +89,12 @@ computeReshapeOutput(ArrayRef<int64_t> higherRankShape,
higherRankDim = higherRankShape[i + rankDiff];
lowerRankDim = lowerRankShape[i];
- if (lowerRankDim != 1 && higherRankDim != 1 &&
+ auto isKnownStaticShapeNotEqualToOne = [](int64_t dim) {
----------------
Jerry-Ge wrote:
opinion: i think `isStaticDimAndNotEqualToOne` would be a little bit more clear and concise?
https://github.com/llvm/llvm-project/pull/168564
More information about the Mlir-commits
mailing list