Skip to content

Commit 0bd2a86

Browse files
committed
fix conficts
2 parents 6035745 + b11376a commit 0bd2a86

21 files changed

Lines changed: 1635 additions & 52 deletions

paconvert/api_mapping.json

Lines changed: 188 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,20 @@
10241024
"max"
10251025
]
10261026
},
1027-
"torch.Tensor.histogram": {},
1027+
"torch.Tensor.histogram": {
1028+
"Matcher": "TensorHistogramMatcher",
1029+
"paddle_api": "paddle.Tensor.histogram",
1030+
"args_list": [
1031+
"bins",
1032+
"range",
1033+
"weight",
1034+
"density"
1035+
],
1036+
"unsupport_args": [
1037+
"weight",
1038+
"density"
1039+
]
1040+
},
10281041
"torch.Tensor.hsplit": {},
10291042
"torch.Tensor.hypot": {
10301043
"Matcher": "HypotMatcher",
@@ -3186,6 +3199,19 @@
31863199
"input": "x"
31873200
}
31883201
},
3202+
"torch.corrcoef": {
3203+
"Matcher": "GenericMatcher",
3204+
"paddle_api": "paddle.linalg.corrcoef",
3205+
"args_list": [
3206+
"input"
3207+
],
3208+
"kwargs_change": {
3209+
"input": "x"
3210+
},
3211+
"paddle_default_kwargs": {
3212+
"rowvar": true
3213+
}
3214+
},
31893215
"torch.cos": {
31903216
"Matcher": "GenericMatcher",
31913217
"paddle_api": "paddle.cos",
@@ -3372,6 +3398,19 @@
33723398
"device"
33733399
]
33743400
},
3401+
"torch.cummin": {
3402+
"Matcher": "TupleAssignMatcher",
3403+
"paddle_api": "paddle.cummin",
3404+
"args_list": [
3405+
"input",
3406+
"dim",
3407+
"out"
3408+
],
3409+
"kwargs_change": {
3410+
"input": "x",
3411+
"dim": "axis"
3412+
}
3413+
},
33753414
"torch.cumprod": {
33763415
"Matcher": "CumprodMatcher",
33773416
"paddle_api": "paddle.cumprod",
@@ -3660,12 +3699,15 @@
36603699
}
36613700
},
36623701
"torch.exp": {
3663-
"Matcher": "ExpMatcher",
3702+
"Matcher": "GenericMatcher",
36643703
"paddle_api": "paddle.exp",
36653704
"args_list": [
36663705
"input",
36673706
"out"
3668-
]
3707+
],
3708+
"kwargs_change": {
3709+
"input": "x"
3710+
}
36693711
},
36703712
"torch.exp2": {
36713713
"Matcher": "Exp2Matcher",
@@ -3675,7 +3717,7 @@
36753717
]
36763718
},
36773719
"torch.expm1": {
3678-
"Matcher": "ExpMatcher",
3720+
"Matcher": "GenericMatcher",
36793721
"paddle_api": "paddle.expm1",
36803722
"args_list": [
36813723
"input",
@@ -4109,6 +4151,17 @@
41094151
"input": "x"
41104152
}
41114153
},
4154+
"torch.frexp": {
4155+
"Matcher": "GenericMatcher",
4156+
"paddle_api": "paddle.frexp",
4157+
"args_list": [
4158+
"input",
4159+
"out"
4160+
],
4161+
"kwargs_change": {
4162+
"input": "x"
4163+
}
4164+
},
41124165
"torch.from_numpy": {
41134166
"Matcher": "GenericMatcher",
41144167
"paddle_api": "paddle.to_tensor",
@@ -4696,6 +4749,17 @@
46964749
"input": "x"
46974750
}
46984751
},
4752+
"torch.linalg.multi_dot": {
4753+
"Matcher": "GenericMatcher",
4754+
"paddle_api": "paddle.linalg.multi_dot",
4755+
"args_list": [
4756+
"tensors",
4757+
"out"
4758+
],
4759+
"kwargs_change": {
4760+
"tensors": "x"
4761+
}
4762+
},
46994763
"torch.linalg.norm": {
47004764
"Matcher": "GenericMatcher",
47014765
"paddle_api": "paddle.linalg.norm",
@@ -6726,6 +6790,19 @@
67266790
"stride": "strides"
67276791
}
67286792
},
6793+
"torch.nn.Upsample": {
6794+
"Matcher": "GenericMatcher",
6795+
"paddle_api": "paddle.nn.Upsample",
6796+
"args_list": [
6797+
"size",
6798+
"scale_factor",
6799+
"mode",
6800+
"align_corners"
6801+
],
6802+
"unsupport_args": [
6803+
"recompute_scale_factor"
6804+
]
6805+
},
67296806
"torch.nn.UpsamplingBilinear2d": {
67306807
"Matcher": "UpsampleMatcher",
67316808
"paddle_api": "paddle.nn.UpsamplingBilinear2D",
@@ -7483,6 +7560,17 @@
74837560
"input": "x"
74847561
}
74857562
},
7563+
"torch.nn.functional.mish": {
7564+
"Matcher": "GenericMatcher",
7565+
"paddle_api": "paddle.nn.functional.mish",
7566+
"args_list": [
7567+
"input",
7568+
"inplace"
7569+
],
7570+
"kwargs_change": {
7571+
"input": "x"
7572+
}
7573+
},
74867574
"torch.nn.functional.mse_loss": {
74877575
"Matcher": "SizeAverageMatcher",
74887576
"paddle_api": "paddle.nn.functional.mse_loss",
@@ -8447,6 +8535,18 @@
84478535
"dtype": "paddle.float32"
84488536
}
84498537
},
8538+
"torch.searchsorted": {
8539+
"Matcher": "SearchsortedMatcher",
8540+
"args_list": [
8541+
"sorted_sequence",
8542+
"values",
8543+
"out_int32",
8544+
"right",
8545+
"side",
8546+
"out",
8547+
"sorter"
8548+
]
8549+
},
84508550
"torch.seed": {
84518551
"Matcher": "SeedMatcher"
84528552
},
@@ -8651,6 +8751,17 @@
86518751
"input": "x"
86528752
}
86538753
},
8754+
"torch.special.expm1": {
8755+
"Matcher": "GenericMatcher",
8756+
"paddle_api": "paddle.expm1",
8757+
"args_list": [
8758+
"input",
8759+
"out"
8760+
],
8761+
"kwargs_change": {
8762+
"input": "x"
8763+
}
8764+
},
86548765
"torch.special.log1p": {
86558766
"Matcher": "GenericMatcher",
86568767
"paddle_api": "paddle.log1p",
@@ -8662,6 +8773,19 @@
86628773
"input": "x"
86638774
}
86648775
},
8776+
"torch.special.log_softmax": {
8777+
"Matcher": "GenericMatcher",
8778+
"paddle_api": "paddle.nn.functional.log_softmax",
8779+
"args_list": [
8780+
"input",
8781+
"dim",
8782+
"dtype"
8783+
],
8784+
"kwargs_change": {
8785+
"input": "x",
8786+
"dim": "axis"
8787+
}
8788+
},
86658789
"torch.special.logsumexp": {
86668790
"Matcher": "LogsumexpMatcher",
86678791
"paddle_api": "paddle.logsumexp",
@@ -9138,10 +9262,32 @@
91389262
"Matcher": "GenericMatcher",
91399263
"paddle_api": "paddle.utils.cpp_extension.BuildExtension.with_options"
91409264
},
9265+
"torch.utils.cpp_extension.CUDAExtension": {
9266+
"Matcher": "GenericMatcher",
9267+
"paddle_api": "paddle.utils.cpp_extension.CUDAExtension",
9268+
"args_list": [
9269+
"name",
9270+
"sources"
9271+
],
9272+
"kwargs_change": {
9273+
"name": ""
9274+
}
9275+
},
91419276
"torch.utils.cpp_extension.CUDA_HOME": {
91429277
"Matcher": "GenericMatcher",
91439278
"paddle_api": "paddle.utils.cpp_extension.cpp_extension.CUDA_HOME"
91449279
},
9280+
"torch.utils.cpp_extension.CppExtension": {
9281+
"Matcher": "GenericMatcher",
9282+
"paddle_api": "paddle.utils.cpp_extension.CppExtension",
9283+
"args_list": [
9284+
"name",
9285+
"sources"
9286+
],
9287+
"kwargs_change": {
9288+
"name": ""
9289+
}
9290+
},
91459291
"torch.utils.data.BatchSampler": {
91469292
"Matcher": "TorchUtilDataBatchSampler",
91479293
"args_list": [
@@ -9150,6 +9296,13 @@
91509296
"drop_last"
91519297
]
91529298
},
9299+
"torch.utils.data.ChainDataset": {
9300+
"Matcher": "GenericMatcher",
9301+
"paddle_api": "paddle.io.ChainDataset",
9302+
"args_list": [
9303+
"datasets"
9304+
]
9305+
},
91539306
"torch.utils.data.Dataset": {
91549307
"Matcher": "GenericMatcher",
91559308
"paddle_api": "paddle.io.Dataset"
@@ -9194,6 +9347,25 @@
91949347
"data_source"
91959348
]
91969349
},
9350+
"torch.utils.data.SequentialSampler": {
9351+
"Matcher": "GenericMatcher",
9352+
"paddle_api": "paddle.io.SequenceSampler",
9353+
"args_list": [
9354+
"data_source"
9355+
]
9356+
},
9357+
"torch.utils.data.Subset": {
9358+
"Matcher": "GenericMatcher",
9359+
"paddle_api": "paddle.io.Subset",
9360+
"args_list": [
9361+
"dataset",
9362+
"indices"
9363+
]
9364+
},
9365+
"torch.utils.data.TensorDataset": {
9366+
"Matcher": "TensorDatasetMatcher",
9367+
"paddle_api": "paddle.io.TensorDataset"
9368+
},
91979369
"torch.utils.data.default_collate": {
91989370
"Matcher": "GenericMatcher",
91999371
"paddle_api": "paddle.io.dataloader.collate.default_collate_fn",
@@ -9230,7 +9402,18 @@
92309402
"tensor": "x"
92319403
}
92329404
},
9233-
"torch.vander": {},
9405+
"torch.vander": {
9406+
"Matcher": "GenericMatcher",
9407+
"paddle_api": "paddle.vander",
9408+
"args_list": [
9409+
"x",
9410+
"N",
9411+
"increasing"
9412+
],
9413+
"kwargs_change": {
9414+
"N": "n"
9415+
}
9416+
},
92349417
"torch.var": {
92359418
"Matcher": "GenericMatcher",
92369419
"paddle_api": "paddle.var",

0 commit comments

Comments
 (0)