@@ -1747,23 +1747,29 @@ func.func @test_lpnormalization(%arg0: !torch.vtensor<[3,4,5,6,7],f32>) -> !torc
17471747
17481748// -----
17491749
1750- // CHECK-LABEL: func.func @test_maxunpool_export_without_output_shape
1751- func.func @test_maxunpool_export_without_output_shape (%arg0: !torch.vtensor <[1 ,1 ,2 ,2 ],f32 >, %arg1: !torch.vtensor <[1 ,1 ,2 ,2 ],si64 >) -> !torch.vtensor <[1 ,1 ,4 ,4 ],f32 > attributes {torch.onnx_meta.ir_version = 6 : si64 , torch.onnx_meta.opset_version = 11 : si64 , torch.onnx_meta.producer_name = " backend-test" , torch.onnx_meta.producer_version = " " } {
1750+ // CHECK-LABEL: func.func @test_maxunpool_2d_export_without_output_shape
1751+ func.func @test_maxunpool_2d_export_without_output_shape (%arg0: !torch.vtensor <[1 ,1 ,2 ,2 ],f32 >, %arg1: !torch.vtensor <[1 ,1 ,2 ,2 ],si64 >) -> !torch.vtensor <[1 ,1 ,4 ,4 ],f32 > attributes {torch.onnx_meta.ir_version = 6 : si64 , torch.onnx_meta.opset_version = 11 : si64 , torch.onnx_meta.producer_name = " backend-test" , torch.onnx_meta.producer_version = " " } {
17521752 // CHECK: %[[INT1:.*]] = torch.constant.int 1
17531753 // CHECK: %[[INT1_0:.*]] = torch.constant.int 1
17541754 // CHECK: %[[INT4:.*]] = torch.constant.int 4
17551755 // CHECK: %[[INT4_0:.*]] = torch.constant.int 4
17561756 // CHECK: %[[OUTPUT_SHAPE:.*]] = torch.prim.ListConstruct %[[INT1]], %[[INT1_0]], %[[INT4]], %[[INT4_0]] : (!torch.int, !torch.int, !torch.int, !torch.int) -> !torch.list<int>
1757- // CHECK: %[[RESULT:.*]] = torch.aten.max_unpool2d %arg0, %arg1, %[[OUTPUT_SHAPE]] : !torch.vtensor<[1,1,2,2],f32>, !torch.vtensor<[1,1,2,2],si64>, !torch.list<int> -> !torch.vtensor<[1,1,4,4],f32>
1757+ // CHECK: %[[INT0:.*]] = torch.constant.int 0
1758+ // CHECK: %[[INT0_1:.*]] = torch.constant.int 0
1759+ // CHECK: %[[PADDING:.*]] = torch.prim.ListConstruct %[[INT0]], %[[INT0_1]] : (!torch.int, !torch.int) -> !torch.list<int>
1760+ // CHECK: %[[INT2:.*]] = torch.constant.int 2
1761+ // CHECK: %[[INT2_1:.*]] = torch.constant.int 2
1762+ // CHECK: %[[STRIDE:.*]] = torch.prim.ListConstruct %[[INT2]], %[[INT2_1]] : (!torch.int, !torch.int) -> !torch.list<int>
1763+ // CHECK: %[[RESULT:.*]] = torch.aten.max_unpool3d %arg0, %arg1, %[[OUTPUT_SHAPE]], %[[STRIDE]], %[[PADDING]] : !torch.vtensor<[1,1,2,2],f32>, !torch.vtensor<[1,1,2,2],si64>, !torch.list<int>, !torch.list<int>, !torch.list<int> -> !torch.vtensor<[1,1,4,4],f32>
17581764 // return %[[RESULT]] : !torch.vtensor<[1,1,4,4],f32>
17591765 %0 = torch.operator " onnx.MaxUnpool" (%arg0 , %arg1 ) {torch.onnx.kernel_shape = [2 : si64 , 2 : si64 ], torch.onnx.strides = [2 : si64 , 2 : si64 ]} : (!torch.vtensor <[1 ,1 ,2 ,2 ],f32 >, !torch.vtensor <[1 ,1 ,2 ,2 ],si64 >) -> !torch.vtensor <[1 ,1 ,4 ,4 ],f32 >
17601766 return %0 : !torch.vtensor <[1 ,1 ,4 ,4 ],f32 >
17611767}
17621768
17631769// -----
17641770
1765- // CHECK-LABEL: func.func @test_maxunpool3d_export_without_output_shape
1766- func.func @test_maxunpool3d_export_without_output_shape (%arg0: !torch.vtensor <[1 ,1 ,2 ,2 ,2 ],f32 >, %arg1: !torch.vtensor <[1 ,1 ,2 ,2 ,2 ],si64 >) -> !torch.vtensor <[1 ,1 ,4 ,4 ,4 ],f32 > attributes {torch.onnx_meta.ir_version = 6 : si64 , torch.onnx_meta.opset_version = 11 : si64 , torch.onnx_meta.producer_name = " backend-test" , torch.onnx_meta.producer_version = " " } {
1771+ // CHECK-LABEL: func.func @test_maxunpool_3d_export_without_output_shape
1772+ func.func @test_maxunpool_3d_export_without_output_shape (%arg0: !torch.vtensor <[1 ,1 ,2 ,2 ,2 ],f32 >, %arg1: !torch.vtensor <[1 ,1 ,2 ,2 ,2 ],si64 >) -> !torch.vtensor <[1 ,1 ,4 ,4 ,4 ],f32 > attributes {torch.onnx_meta.ir_version = 6 : si64 , torch.onnx_meta.opset_version = 11 : si64 , torch.onnx_meta.producer_name = " backend-test" , torch.onnx_meta.producer_version = " " } {
17671773 // CHECK: %[[INT1:.*]] = torch.constant.int 1
17681774 // CHECK: %[[INT1_0:.*]] = torch.constant.int 1
17691775 // CHECK: %[[INT4:.*]] = torch.constant.int 4
0 commit comments