@@ -136,7 +136,6 @@ func.func @test_mulop_conversion(%arg0: tensor<1x2x3x4xi32>, %arg1: tensor<1x2x3
136
136
// CHECK: tosa.transpose %[[RESHAPED]] {perms = array<i32: 0, 2, 1>} : (tensor<1x3x2xi32>) -> tensor<1x2x3xi32>
137
137
func.func @test_basic_non_broadcasting_reshape (%arg0: tensor <2 x3 xi32 >) -> tensor <1 x2 x3 xi32 > {
138
138
%shape = tosa.const_shape {values = dense <[1 , 3 , 2 ]> : tensor <3 xindex >} : () -> !tosa.shape <3 >
139
- %perms = " tosa.const" () {values = dense <[0 , 2 , 1 ]> : tensor <3 xi32 >} : () -> tensor <3 xi32 >
140
139
%1 = tosa.reshape %arg0 , %shape : (tensor <2 x3 xi32 >, !tosa.shape <3 >) -> tensor <1 x3 x2 xi32 >
141
140
%2 = tosa.transpose %1 {perms = array<i32 : 0 , 2 , 1 >}: (tensor <1 x3 x2 xi32 >) -> tensor <1 x2 x3 xi32 >
142
141
return %2 : tensor <1 x2 x3 xi32 >
@@ -150,7 +149,6 @@ func.func @test_basic_non_broadcasting_reshape(%arg0: tensor<2x3xi32>) -> tensor
150
149
// CHECK: return %[[RES]]
151
150
func.func @test_dynamic_broadcasting_reshape (%arg0: tensor <?xi32 >) -> tensor <1 x1 x?xi32 > {
152
151
%shape = tosa.const_shape {values = dense <[1 , -1 , 1 ]> : tensor <3 xindex >} : () -> !tosa.shape <3 >
153
- %perms = " tosa.const" () {values = dense <[0 , 2 , 1 ]> : tensor <3 xi32 >} : () -> tensor <3 xi32 >
154
152
%1 = tosa.reshape %arg0 , %shape : (tensor <?xi32 >, !tosa.shape <3 >) -> tensor <1 x?x1 xi32 >
155
153
%2 = tosa.transpose %1 {perms = array<i32 : 0 , 2 , 1 >}: (tensor <1 x?x1 xi32 >) -> tensor <1 x1 x?xi32 >
156
154
return %2 : tensor <1 x1 x?xi32 >
0 commit comments