@@ -659,7 +659,7 @@ func.func @scatter_minimum_static(%arg0 : tensor<?x4x?xi32>, %arg1 : tensor<3x?x
659
659
// CHECK-LABEL: @test_pool_static
660
660
func.func @test_pool_static (%arg0: tensor <3 x5 x6 x7 xf32 >) {
661
661
// CHECK: -> tensor<3x2x4x7xf32>
662
- %0 = " tosa.avg_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 1 , 1 >} : (tensor <3 x5 x6 x7 xf32 >) -> tensor <?x?x?x?xf32 >
662
+ %0 = " tosa.avg_pool2d" (%arg0 ) {acc_type = f32 , kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 1 , 1 >} : (tensor <3 x5 x6 x7 xf32 >) -> tensor <?x?x?x?xf32 >
663
663
664
664
// CHECK: -> tensor<3x2x4x7xf32>
665
665
%1 = " tosa.max_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 1 , 1 >} : (tensor <3 x5 x6 x7 xf32 >) -> tensor <?x?x?x?xf32 >
@@ -689,7 +689,7 @@ func.func @conv2d_dynamic_input(%input: tensor<?x?x?x?xf32>, %weights: tensor<5x
689
689
// CHECK-LABEL: @test_pool_dynamic_input
690
690
func.func @test_pool_dynamic_input (%arg0: tensor <?x?x?x?xf32 >) {
691
691
// CHECK: -> tensor<?x?x?x?xf32>
692
- %0 = " tosa.avg_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 1 , 1 >} : (tensor <?x?x?x?xf32 >) -> tensor <?x?x?x?xf32 >
692
+ %0 = " tosa.avg_pool2d" (%arg0 ) {acc_type = f32 , kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 1 , 1 >} : (tensor <?x?x?x?xf32 >) -> tensor <?x?x?x?xf32 >
693
693
694
694
// CHECK: -> tensor<?x?x?x?xf32>
695
695
%1 = " tosa.max_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 1 , 1 >} : (tensor <?x?x?x?xf32 >) -> tensor <?x?x?x?xf32 >
@@ -701,7 +701,7 @@ func.func @test_pool_dynamic_input(%arg0: tensor<?x?x?x?xf32>) {
701
701
// CHECK-LABEL: @test_pool_padded
702
702
func.func @test_pool_padded (%arg0: tensor <3 x5 x6 x7 xf32 >) {
703
703
// CHECK: -> tensor<3x5x11x7xf32>
704
- %0 = " tosa.avg_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 1 , 2 , 3 , 4 >, stride = array<i64 : 1 , 1 >} : (tensor <3 x5 x6 x7 xf32 >) -> tensor <?x?x?x?xf32 >
704
+ %0 = " tosa.avg_pool2d" (%arg0 ) {acc_type = f32 , kernel = array<i64 : 4 , 3 >, pad = array<i64 : 1 , 2 , 3 , 4 >, stride = array<i64 : 1 , 1 >} : (tensor <3 x5 x6 x7 xf32 >) -> tensor <?x?x?x?xf32 >
705
705
706
706
// CHECK: -> tensor<3x5x11x7xf32>
707
707
%1 = " tosa.max_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 1 , 2 , 3 , 4 >, stride = array<i64 : 1 , 1 >} : (tensor <3 x5 x6 x7 xf32 >) -> tensor <?x?x?x?xf32 >
@@ -731,7 +731,7 @@ func.func @conv2d_dynamic_bias(%input: tensor<2x8x9x3xf32>, %weights: tensor<5x3
731
731
// CHECK-LABEL: @test_pool_stride
732
732
func.func @test_pool_stride (%arg0: tensor <3 x11 x12 x7 xf32 >) {
733
733
// CHECK: -> tensor<3x4x4x7xf32>
734
- %0 = " tosa.avg_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 2 , 3 >} : (tensor <3 x11 x12 x7 xf32 >) -> tensor <?x?x?x?xf32 >
734
+ %0 = " tosa.avg_pool2d" (%arg0 ) {acc_type = f32 , kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 2 , 3 >} : (tensor <3 x11 x12 x7 xf32 >) -> tensor <?x?x?x?xf32 >
735
735
736
736
// CHECK: -> tensor<3x4x4x7xf32>
737
737
%1 = " tosa.max_pool2d" (%arg0 ) {kernel = array<i64 : 4 , 3 >, pad = array<i64 : 0 , 0 , 0 , 0 >, stride = array<i64 : 2 , 3 >} : (tensor <3 x11 x12 x7 xf32 >) -> tensor <?x?x?x?xf32 >
0 commit comments