Skip to content

Commit b92605a

Browse files
committed
Disable invalid test
1 parent 6b2a4b3 commit b92605a

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -545,32 +545,32 @@ func.func @test_slice_size_minus_one(%arg0 : tensor<?x8x8x8xi32>) -> () {
545545
}
546546

547547
// -----
548-
549-
// CHECK-LABEL: @test_slice_size_out_of_bound
550-
func.func @test_slice_size_out_of_bound(%arg0 : tensor<8x8x8x?xi32>) -> () {
551-
// CHECK: tosa.slice %arg0 {size = array<i64: 0, -2, 9, 4>, start = array<i64: 0, 0, 0, 0>} : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x4xi32>
552-
// this checks following
553-
// dim 0: size=0 => inferred output dim is ?
554-
// dim 1: size=-2 => inferred output dim is ?
555-
// dim 3: start+size out of bound because size too big: inferred output dim is ?
556-
// dim 4: size=4, input dim=? => inferred output dim is 4
557-
%2= tosa.slice %arg0 { start = array<i64: 0, 0, 0, 0>, size = array<i64: 0, -2, 9, 4> } : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x?xi32>
558-
return
559-
}
560-
561-
// -----
562-
563-
// CHECK-LABEL: @test_slice_start_out_of_bound
564-
func.func @test_slice_start_out_of_bound(%arg0 : tensor<8x8x8x?xi32>) -> () {
565-
// CHECK: tosa.slice %arg0 {size = array<i64: 1, 1, 3, 4>, start = array<i64: -1, 8, 6, 8000000>} : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x4xi32>
566-
// this checks following
567-
// dim 0: start=-1 => inferred output dim is ?
568-
// dim 1: start=8 => inferred output dim is ?
569-
// dim 2: start+size out of bound: inferred output dim is ?
570-
// dim 3: start=8000000, size=4, input dim=? => inferred output dim is 4
571-
%2= tosa.slice %arg0 { start = array<i64: -1, 8, 6, 8000000>, size = array<i64: 1, 1, 3, 4> } : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x?xi32>
572-
return
573-
}
548+
// COM: AMD: disabled, input is invalid
549+
// // COM-LABEL: @test_slice_size_out_of_bound
550+
// func.func @test_slice_size_out_of_bound(%arg0 : tensor<8x8x8x?xi32>) -> () {
551+
// // COM: tosa.slice %arg0 {size = array<i64: 0, -2, 9, 4>, start = array<i64: 0, 0, 0, 0>} : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x4xi32>
552+
// // this checks following
553+
// // dim 0: size=0 => inferred output dim is ?
554+
// // dim 1: size=-2 => inferred output dim is ?
555+
// // dim 3: start+size out of bound because size too big: inferred output dim is ?
556+
// // dim 4: size=4, input dim=? => inferred output dim is 4
557+
// %2= tosa.slice %arg0 { start = array<i64: 0, 0, 0, 0>, size = array<i64: 0, -2, 9, 4> } : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x?xi32>
558+
// return
559+
// }
560+
561+
// -----
562+
// COM: AMD: disabled, input is invalid
563+
// // COM-LABEL: @test_slice_start_out_of_bound
564+
// func.func @test_slice_start_out_of_bound(%arg0 : tensor<8x8x8x?xi32>) -> () {
565+
// // COM: tosa.slice %arg0 {size = array<i64: 1, 1, 3, 4>, start = array<i64: -1, 8, 6, 8000000>} : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x4xi32>
566+
// // this checks following
567+
// // dim 0: start=-1 => inferred output dim is ?
568+
// // dim 1: start=8 => inferred output dim is ?
569+
// // dim 2: start+size out of bound: inferred output dim is ?
570+
// // dim 3: start=8000000, size=4, input dim=? => inferred output dim is 4
571+
// %2= tosa.slice %arg0 { start = array<i64: -1, 8, 6, 8000000>, size = array<i64: 1, 1, 3, 4> } : (tensor<8x8x8x?xi32>) -> tensor<?x?x?x?xi32>
572+
// return
573+
// }
574574

575575
// -----
576576

0 commit comments

Comments
 (0)