@@ -273,40 +273,6 @@ func.func @torch.aten._assert_scalar(%arg0: !torch.int) -> !torch.int {
273273 return %arg0 : !torch.int
274274}
275275
276- // -----
277-
278- // CHECK-LABEL: func.func @convolution_backward_none_result(
279- // CHECK-SAME: %[[VAL_0:.*]]: !torch.vtensor<[1,1,3,3],f32>, %[[VAL_1:.*]]: !torch.vtensor<[1,1,5,5],f32>,
280- // CHECK-SAME: %[[VAL_2:.*]]: !torch.vtensor<[1,1,3,3],f32>,
281- // CHECK-SAME: %[[VAL_3:.*]]: !torch.vtensor<[],f32>) -> (!torch.vtensor<[1,1,3,3],f32>, !torch.vtensor<[1],f32>) {
282- func.func @convolution_backward_none_result (%arg0: !torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, %arg1: !torch.vtensor <[1 ,1 ,5 ,5 ],f32 >, %arg2: !torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, %arg3: !torch.vtensor <[],f32 >) -> (!torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, !torch.vtensor <[1 ],f32 >) {
283- // CHECK: %[[VAL_4:.*]] = torch.constant.int 3
284- // CHECK: %[[VAL_5:.*]] = torch.constant.int 2
285- // CHECK: %[[VAL_6:.*]] = torch.constant.none
286- // CHECK: %[[VAL_7:.*]] = torch.constant.int 0
287- // CHECK: %[[VAL_8:.*]] = torch.constant.bool false
288- // CHECK: %[[VAL_9:.*]] = torch.constant.int 1
289- // CHECK: %[[VAL_10:.*]] = torch.prim.ListConstruct %[[VAL_9]], %[[VAL_9]] : (!torch.int, !torch.int) -> !torch.list<int>
290- // CHECK: %[[VAL_11:.*]] = torch.prim.ListConstruct %[[VAL_7]], %[[VAL_7]] : (!torch.int, !torch.int) -> !torch.list<int>
291- // CHECK: %[[VAL_12:.*]] = torch.aten.transpose.int %[[VAL_1]], %[[VAL_7]], %[[VAL_9]] : !torch.vtensor<[1,1,5,5],f32>, !torch.int, !torch.int -> !torch.vtensor<[1,1,5,5],f32>
292- // CHECK: %[[VAL_13:.*]] = torch.aten.transpose.int %[[VAL_0]], %[[VAL_7]], %[[VAL_9]] : !torch.vtensor<[1,1,3,3],f32>, !torch.int, !torch.int -> !torch.vtensor<[1,1,3,3],f32>
293- // CHECK: %[[VAL_14:.*]] = torch.aten.convolution %[[VAL_12]], %[[VAL_13]], %[[VAL_6]], %[[VAL_10]], %[[VAL_11]], %[[VAL_10]], %[[VAL_8]], %[[VAL_11]], %[[VAL_9]] : !torch.vtensor<[1,1,5,5],f32>, !torch.vtensor<[1,1,3,3],f32>, !torch.none, !torch.list<int>, !torch.list<int>, !torch.list<int>, !torch.bool, !torch.list<int>, !torch.int -> !torch.vtensor<[1,1,3,3],f32>
294- // CHECK: %[[VAL_15:.*]] = torch.aten.transpose.int %[[VAL_14]], %[[VAL_7]], %[[VAL_9]] : !torch.vtensor<[1,1,3,3],f32>, !torch.int, !torch.int -> !torch.vtensor<[1,1,3,3],f32>
295- // CHECK: %[[VAL_16:.*]] = torch.prim.ListConstruct %[[VAL_7]], %[[VAL_5]], %[[VAL_4]] : (!torch.int, !torch.int, !torch.int) -> !torch.list<int>
296- // CHECK: %[[VAL_17:.*]] = torch.aten.sum.dim_IntList %[[VAL_0]], %[[VAL_16]], %[[VAL_8]], %[[VAL_6]] : !torch.vtensor<[1,1,3,3],f32>, !torch.list<int>, !torch.bool, !torch.none -> !torch.vtensor<[1],f32>
297- // CHECK: return %[[VAL_15]], %[[VAL_17]] : !torch.vtensor<[1,1,3,3],f32>, !torch.vtensor<[1],f32>
298- %true = torch.constant.bool true
299- %int0 = torch.constant.int 0
300- %false = torch.constant.bool false
301- %int1 = torch.constant.int 1
302- %0 = torch.prim.ListConstruct %int1 : (!torch.int ) -> !torch.list <int >
303- %1 = torch.prim.ListConstruct %int1 , %int1 : (!torch.int , !torch.int ) -> !torch.list <int >
304- %2 = torch.prim.ListConstruct %int0 , %int0 : (!torch.int , !torch.int ) -> !torch.list <int >
305- %3 = torch.prim.ListConstruct %false , %true , %true : (!torch.bool , !torch.bool , !torch.bool ) -> !torch.list <bool >
306- %result0 , %result1 , %result2 = torch.aten.convolution_backward %arg0 , %arg1 , %arg2 , %0 , %1 , %2 , %1 , %false , %2 , %int1 , %3 : !torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, !torch.vtensor <[1 ,1 ,5 ,5 ],f32 >, !torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, !torch.list <int >, !torch.list <int >, !torch.list <int >, !torch.list <int >, !torch.bool , !torch.list <int >, !torch.int , !torch.list <bool > -> !torch.none , !torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, !torch.vtensor <[1 ],f32 >
307- return %result1 , %result2 : !torch.vtensor <[1 ,1 ,3 ,3 ],f32 >, !torch.vtensor <[1 ],f32 >
308- }
309-
310276// -----
311277// CHECK-LABEL: func.func @emptyLikeNoneDtype(
312278// CHECK-SAME: %[[ARG0:.*]]: !torch.vtensor<[200,200,26],f64>) -> !torch.vtensor<[200,200,26],f64> {
0 commit comments