|
1024 | 1024 | "max" |
1025 | 1025 | ] |
1026 | 1026 | }, |
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 | + }, |
1028 | 1041 | "torch.Tensor.hsplit": {}, |
1029 | 1042 | "torch.Tensor.hypot": { |
1030 | 1043 | "Matcher": "HypotMatcher", |
|
3186 | 3199 | "input": "x" |
3187 | 3200 | } |
3188 | 3201 | }, |
| 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 | + }, |
3189 | 3215 | "torch.cos": { |
3190 | 3216 | "Matcher": "GenericMatcher", |
3191 | 3217 | "paddle_api": "paddle.cos", |
|
3372 | 3398 | "device" |
3373 | 3399 | ] |
3374 | 3400 | }, |
| 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 | + }, |
3375 | 3414 | "torch.cumprod": { |
3376 | 3415 | "Matcher": "CumprodMatcher", |
3377 | 3416 | "paddle_api": "paddle.cumprod", |
|
3660 | 3699 | } |
3661 | 3700 | }, |
3662 | 3701 | "torch.exp": { |
3663 | | - "Matcher": "ExpMatcher", |
| 3702 | + "Matcher": "GenericMatcher", |
3664 | 3703 | "paddle_api": "paddle.exp", |
3665 | 3704 | "args_list": [ |
3666 | 3705 | "input", |
3667 | 3706 | "out" |
3668 | | - ] |
| 3707 | + ], |
| 3708 | + "kwargs_change": { |
| 3709 | + "input": "x" |
| 3710 | + } |
3669 | 3711 | }, |
3670 | 3712 | "torch.exp2": { |
3671 | 3713 | "Matcher": "Exp2Matcher", |
|
3675 | 3717 | ] |
3676 | 3718 | }, |
3677 | 3719 | "torch.expm1": { |
3678 | | - "Matcher": "ExpMatcher", |
| 3720 | + "Matcher": "GenericMatcher", |
3679 | 3721 | "paddle_api": "paddle.expm1", |
3680 | 3722 | "args_list": [ |
3681 | 3723 | "input", |
|
4109 | 4151 | "input": "x" |
4110 | 4152 | } |
4111 | 4153 | }, |
| 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 | + }, |
4112 | 4165 | "torch.from_numpy": { |
4113 | 4166 | "Matcher": "GenericMatcher", |
4114 | 4167 | "paddle_api": "paddle.to_tensor", |
|
4696 | 4749 | "input": "x" |
4697 | 4750 | } |
4698 | 4751 | }, |
| 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 | + }, |
4699 | 4763 | "torch.linalg.norm": { |
4700 | 4764 | "Matcher": "GenericMatcher", |
4701 | 4765 | "paddle_api": "paddle.linalg.norm", |
|
6726 | 6790 | "stride": "strides" |
6727 | 6791 | } |
6728 | 6792 | }, |
| 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 | + }, |
6729 | 6806 | "torch.nn.UpsamplingBilinear2d": { |
6730 | 6807 | "Matcher": "UpsampleMatcher", |
6731 | 6808 | "paddle_api": "paddle.nn.UpsamplingBilinear2D", |
|
7483 | 7560 | "input": "x" |
7484 | 7561 | } |
7485 | 7562 | }, |
| 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 | + }, |
7486 | 7574 | "torch.nn.functional.mse_loss": { |
7487 | 7575 | "Matcher": "SizeAverageMatcher", |
7488 | 7576 | "paddle_api": "paddle.nn.functional.mse_loss", |
|
8447 | 8535 | "dtype": "paddle.float32" |
8448 | 8536 | } |
8449 | 8537 | }, |
| 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 | + }, |
8450 | 8550 | "torch.seed": { |
8451 | 8551 | "Matcher": "SeedMatcher" |
8452 | 8552 | }, |
|
8651 | 8751 | "input": "x" |
8652 | 8752 | } |
8653 | 8753 | }, |
| 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 | + }, |
8654 | 8765 | "torch.special.log1p": { |
8655 | 8766 | "Matcher": "GenericMatcher", |
8656 | 8767 | "paddle_api": "paddle.log1p", |
|
8662 | 8773 | "input": "x" |
8663 | 8774 | } |
8664 | 8775 | }, |
| 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 | + }, |
8665 | 8789 | "torch.special.logsumexp": { |
8666 | 8790 | "Matcher": "LogsumexpMatcher", |
8667 | 8791 | "paddle_api": "paddle.logsumexp", |
|
9138 | 9262 | "Matcher": "GenericMatcher", |
9139 | 9263 | "paddle_api": "paddle.utils.cpp_extension.BuildExtension.with_options" |
9140 | 9264 | }, |
| 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 | + }, |
9141 | 9276 | "torch.utils.cpp_extension.CUDA_HOME": { |
9142 | 9277 | "Matcher": "GenericMatcher", |
9143 | 9278 | "paddle_api": "paddle.utils.cpp_extension.cpp_extension.CUDA_HOME" |
9144 | 9279 | }, |
| 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 | + }, |
9145 | 9291 | "torch.utils.data.BatchSampler": { |
9146 | 9292 | "Matcher": "TorchUtilDataBatchSampler", |
9147 | 9293 | "args_list": [ |
|
9150 | 9296 | "drop_last" |
9151 | 9297 | ] |
9152 | 9298 | }, |
| 9299 | + "torch.utils.data.ChainDataset": { |
| 9300 | + "Matcher": "GenericMatcher", |
| 9301 | + "paddle_api": "paddle.io.ChainDataset", |
| 9302 | + "args_list": [ |
| 9303 | + "datasets" |
| 9304 | + ] |
| 9305 | + }, |
9153 | 9306 | "torch.utils.data.Dataset": { |
9154 | 9307 | "Matcher": "GenericMatcher", |
9155 | 9308 | "paddle_api": "paddle.io.Dataset" |
|
9194 | 9347 | "data_source" |
9195 | 9348 | ] |
9196 | 9349 | }, |
| 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 | + }, |
9197 | 9369 | "torch.utils.data.default_collate": { |
9198 | 9370 | "Matcher": "GenericMatcher", |
9199 | 9371 | "paddle_api": "paddle.io.dataloader.collate.default_collate_fn", |
|
9230 | 9402 | "tensor": "x" |
9231 | 9403 | } |
9232 | 9404 | }, |
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 | + }, |
9234 | 9417 | "torch.var": { |
9235 | 9418 | "Matcher": "GenericMatcher", |
9236 | 9419 | "paddle_api": "paddle.var", |
|
0 commit comments