[Mlir-commits] [mlir] [mlir][tosa] Check for unranked tensors during validation (PR #68509)
Sarthak Gupta
llvmlistbot at llvm.org
Wed Oct 11 01:50:04 PDT 2023
================
@@ -695,4 +695,13 @@ func.func @test_custom(%arg0: tensor<1x1x1x1x1x1x10xi32>) -> tensor<1x1x1x1x1x1x
return %0 : tensor<1x1x1x1x1x1x10xi32>
}
+// -----
+// CHECK-LABEL: unranked_tensor
+func.func @test_unranked_tensor(%arg0: tensor<1x1x1x1x13x21xf32>) {
+ // expected-error at +1 {{'tosa.slice' op failed level check: unranked tensor}}
+ %0 = "tosa.slice"(%arg0) {start = array<i64: 0, 0, 0, 0, 6, 8, 0>, size = array<i64: 1, 1, 1, 1, 4, 11, 1>} :
----------------
gptsarthak wrote:
Changed `%arg0` to `tensor<*xf32>`.
https://github.com/llvm/llvm-project/pull/68509
More information about the Mlir-commits
mailing list