@@ -141,4 +141,24 @@ func.func @test_conv_concat_dependency(%arg0: tensor<1x1x512x512xf32>) -> tensor
141141// CHECK: [[VAR_6_:%.+]] = "onnx.Concat"([[VAR_3_]], [[VAR_5_]]) {axis = 1 : si64, onnx_node_name = "onnx.Concat_11"} : (tensor<1x32x512x512xf32>, tensor<1x32x512x512xf32>) -> tensor<1x64x512x512xf32>
142142// CHECK: return [[VAR_6_]] : tensor<1x64x512x512xf32>
143143// CHECK: }
144+ }
145+
146+ func.func @test_conv_concat_not_static_shape (%arg0: tensor <1 x1 x512 x512 xf32 >, %0: tensor <*xf32 >) -> tensor <1 x64 x512 x512 xf32 > {
147+ %1 = onnx.Constant dense <0.00999999977 > : tensor <32 xf32 >
148+ %2 = onnx.Constant dense <0.00999999977 > : tensor <32 x1 x3 x3 xf32 >
149+ %3 = onnx.Constant dense <0.00999999977 > : tensor <32 xf32 >
150+ %4 = " onnx.Conv" (%arg0 , %0 , %1 ) {auto_pad = " NOTSET" , group = 1 : si64 , pads = [1 , 1 , 1 , 1 ]} : (tensor <1 x1 x512 x512 xf32 >, tensor <*xf32 >, tensor <32 xf32 >) -> tensor <1 x32 x512 x512 xf32 >
151+ %5 = " onnx.Conv" (%arg0 , %2 , %3 ) {auto_pad = " NOTSET" , group = 1 : si64 , pads = [1 , 1 , 1 , 1 ]} : (tensor <1 x1 x512 x512 xf32 >, tensor <32 x1 x3 x3 xf32 >, tensor <32 xf32 >) -> tensor <1 x?x512 x512 xf32 >
152+ %6 = " onnx.Concat" (%4 , %5 ) {axis = 1 : si64 } : (tensor <1 x32 x512 x512 xf32 >, tensor <1 x?x512 x512 xf32 >) -> tensor <1 x64 x512 x512 xf32 >
153+ return %6 : tensor <1 x64 x512 x512 xf32 >
154+
155+ // CHECK-LABEL: func.func @test_conv_concat_not_static_shape
156+ // CHECK-SAME: ([[PARAM_0_:%.+]]: tensor<1x1x512x512xf32>, [[PARAM_1_:%.+]]: tensor<*xf32>) -> tensor<1x64x512x512xf32> {
157+ // CHECK-DAG: [[VAR_0_:%.+]] = onnx.Constant dense<0.00999999977> : tensor<32xf32>
158+ // CHECK-DAG: [[VAR_1_:%.+]] = onnx.Constant dense<0.00999999977> : tensor<32x1x3x3xf32>
159+ // CHECK-DAG: [[VAR_2_:%.+]] = "onnx.Conv"([[PARAM_0_]], [[PARAM_1_]], [[VAR_0_]]) {auto_pad = "NOTSET", group = 1 : si64, onnx_node_name = "onnx.Conv_12", pads = [1, 1, 1, 1]} : (tensor<1x1x512x512xf32>, tensor<*xf32>, tensor<32xf32>) -> tensor<1x32x512x512xf32>
160+ // CHECK-DAG: [[VAR_3_:%.+]] = "onnx.Conv"([[PARAM_0_]], [[VAR_1_]], [[VAR_0_]]) {auto_pad = "NOTSET", group = 1 : si64, onnx_node_name = "onnx.Conv_13", pads = [1, 1, 1, 1]} : (tensor<1x1x512x512xf32>, tensor<32x1x3x3xf32>, tensor<32xf32>) -> tensor<1x32x512x512xf32>
161+ // CHECK: [[VAR_4_:%.+]] = "onnx.Concat"([[VAR_2_]], [[VAR_3_]]) {axis = 1 : si64, onnx_node_name = "onnx.Concat_14"} : (tensor<1x32x512x512xf32>, tensor<1x32x512x512xf32>) -> tensor<1x64x512x512xf32>
162+ // CHECK: return [[VAR_4_]] : tensor<1x64x512x512xf32>
163+ // CHECK: }
144164}
0 commit comments