@@ -10281,6 +10281,34 @@ StringRef mlir::torch::Torch::getAbstractInterpLibrary() {
10281
10281
" func.func @\"__torch_mlir_shape_fn.aten.flip\"(%arg0: !torch.list<int>, %arg1: !torch.list<int>) -> !torch.list<int> {\n"
10282
10282
" return %arg0 : !torch.list<int>\n"
10283
10283
" }\n"
10284
+ " func.func @\"__torch_mlir_shape_fn.aten.fliplr\"(%arg0: !torch.list<int>) -> !torch.list<int> {\n"
10285
+ " %none = torch.constant.none\n"
10286
+ " %str = torch.constant.str \"AssertionError: \"\n"
10287
+ " %int2 = torch.constant.int 2\n"
10288
+ " %0 = torch.aten.len.t %arg0 : !torch.list<int> -> !torch.int\n"
10289
+ " %1 = torch.aten.ge.int %0, %int2 : !torch.int, !torch.int -> !torch.bool\n"
10290
+ " torch.prim.If %1 -> () {\n"
10291
+ " torch.prim.If.yield\n"
10292
+ " } else {\n"
10293
+ " torch.prim.RaiseException %str, %none : !torch.str, !torch.none\n"
10294
+ " torch.prim.If.yield\n"
10295
+ " }\n"
10296
+ " return %arg0 : !torch.list<int>\n"
10297
+ " }\n"
10298
+ " func.func @\"__torch_mlir_shape_fn.aten.flipud\"(%arg0: !torch.list<int>) -> !torch.list<int> {\n"
10299
+ " %none = torch.constant.none\n"
10300
+ " %str = torch.constant.str \"AssertionError: \"\n"
10301
+ " %int1 = torch.constant.int 1\n"
10302
+ " %0 = torch.aten.len.t %arg0 : !torch.list<int> -> !torch.int\n"
10303
+ " %1 = torch.aten.ge.int %0, %int1 : !torch.int, !torch.int -> !torch.bool\n"
10304
+ " torch.prim.If %1 -> () {\n"
10305
+ " torch.prim.If.yield\n"
10306
+ " } else {\n"
10307
+ " torch.prim.RaiseException %str, %none : !torch.str, !torch.none\n"
10308
+ " torch.prim.If.yield\n"
10309
+ " }\n"
10310
+ " return %arg0 : !torch.list<int>\n"
10311
+ " }\n"
10284
10312
" func.func @\"__torch_mlir_shape_fn.aten.convolution_backward\"(%arg0: !torch.list<int>, %arg1: !torch.list<int>, %arg2: !torch.list<int>, %arg3: !torch.optional<list<int>>, %arg4: !torch.list<int>, %arg5: !torch.list<int>, %arg6: !torch.list<int>, %arg7: !torch.bool, %arg8: !torch.list<int>, %arg9: !torch.int, %arg10: !torch.list<bool>) -> !torch.tuple<list<int>, list<int>, list<int>> {\n"
10285
10313
" %0 = call @__torch__.torch.jit._shape_functions.conv_backwards(%arg0, %arg1, %arg2, %arg3) : (!torch.list<int>, !torch.list<int>, !torch.list<int>, !torch.optional<list<int>>) -> !torch.tuple<list<int>, list<int>, list<int>>\n"
10286
10314
" return %0 : !torch.tuple<list<int>, list<int>, list<int>>\n"
@@ -12590,6 +12618,14 @@ StringRef mlir::torch::Torch::getAbstractInterpLibrary() {
12590
12618
" %0:2 = torch.prim.TupleUnpack %arg0 : !torch.tuple<int, int> -> !torch.int, !torch.int\n"
12591
12619
" return %0#1 : !torch.int\n"
12592
12620
" }\n"
12621
+ " func.func @\"__torch_mlir_dtype_fn.aten.fliplr\"(%arg0: !torch.tuple<int, int>) -> !torch.int {\n"
12622
+ " %0:2 = torch.prim.TupleUnpack %arg0 : !torch.tuple<int, int> -> !torch.int, !torch.int\n"
12623
+ " return %0#1 : !torch.int\n"
12624
+ " }\n"
12625
+ " func.func @\"__torch_mlir_dtype_fn.aten.flipud\"(%arg0: !torch.tuple<int, int>) -> !torch.int {\n"
12626
+ " %0:2 = torch.prim.TupleUnpack %arg0 : !torch.tuple<int, int> -> !torch.int, !torch.int\n"
12627
+ " return %0#1 : !torch.int\n"
12628
+ " }\n"
12593
12629
" func.func @\"__torch_mlir_dtype_fn.aten.sign\"(%arg0: !torch.tuple<int, int>) -> !torch.int {\n"
12594
12630
" %0:2 = torch.prim.TupleUnpack %arg0 : !torch.tuple<int, int> -> !torch.int, !torch.int\n"
12595
12631
" return %0#1 : !torch.int\n"
0 commit comments