[Mlir-commits] [mlir] [mlir][tosa] Add verifier checks for Gather (PR #137204)

Luke Hutton llvmlistbot at llvm.org
Fri Apr 25 03:24:01 PDT 2025


================
@@ -369,4 +369,36 @@ func.func @test_error_scalar_input_with_per_channel(%arg0: tensor<i8>) -> tensor
   // expected-error at +1 {{'tosa.rescale' op requires input to be at least rank 1 when per_channel is true, but got rank 0}}
   %0 = tosa.rescale %arg0, %multiplier, %shift, %input_zp, %output_zp {scale32 = true, rounding_mode = "SINGLE_ROUND", per_channel = true, input_unsigned = false, output_unsigned = false} : (tensor<i8>, tensor<1xi32>, tensor<1xi8>, tensor<1xi8>, tensor<1xi16>) -> tensor<i16>
   return %0 : tensor<i16>
+
----------------
lhutton1 wrote:

```suggestion
}

```

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


More information about the Mlir-commits mailing list