[Mlir-commits] [mlir] [mlir][Transforms] Add missing check in tosa::transpose::verify() (PR #102099)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Aug 11 23:55:03 PDT 2024
================
@@ -413,3 +413,38 @@ func.func @test_tile_invalid_multiples() {
%1 = tosa.tile %0 {multiples = array<i64>} : (tensor<4x31x31xf32>) -> tensor<4x31x31xf32>
return
}
+
+// -----
+
+// CHECK-LABEL: @test_invalid_constant_permutation
+func.func @test_invalid_constant_permutation() {
+ // expected-error at +3 {{permutation must be within input bounds}}
+ %0 = tensor.empty() : tensor<3x4x5xi32>
+ %1 = arith.constant dense<[3, 0, 1]> : tensor<3xi32>
+ %2 = tosa.transpose %0, %1 : (tensor<3x4x5xi32>, tensor<3xi32>) -> tensor<3x4x5xi32>
+ return
----------------
DarshanRamakant wrote:
Strangely it was no visible in my local vs code. Fixed the issue now.
Yes, the latest CI failures not related, it is happening on all the patches.
https://github.com/llvm/llvm-project/pull/102099
More information about the Mlir-commits
mailing list