[Mlir-commits] [mlir] [mlir][tosa] Shape operation level checks limited to MAX_SHAPE_LEN (PR #175020)
Luke Hutton
llvmlistbot at llvm.org
Fri Jan 9 03:24:47 PST 2026
================
@@ -390,7 +390,7 @@ func.func @test_pad_rank_invalid(%arg0: tensor<1x1x1x1x13x21x3xf32>) -> tensor<1
func.func @test_reshape_rank_invalid(%arg0: tensor<13x21x3xf32>) -> tensor<1x1x1x1x1x1x819xf32> {
%1 = tosa.const_shape {values = dense<[1, 1, 1, 1, 1, 1, 819]> : tensor<7xindex>} : () -> !tosa.shape<7>
- // expected-error at +1 {{'tosa.reshape' op failed shape type level check: '!tosa.shape<7>' exceeds MAX_RANK}}
+ // expected-error at +1 {{'tosa.reshape' op failed level check: result rank(shape) <= MAX_RANK}}
----------------
lhutton1 wrote:
This change is due to reshape no longer meeting the limit of `MAX_SHAPE_LEN` and failing on the lower limit of `MAX_RANK` in the result instead.
https://github.com/llvm/llvm-project/pull/175020
More information about the Mlir-commits
mailing list