Skip to content

Commit

Permalink
规则转换 No.234/236/237 fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
txyugood committed Jun 28, 2023
1 parent 1568fd2 commit ed17c4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions paconvert/api_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -8751,6 +8751,7 @@
"dataset",
"indices"
]
},
"torch.utils.cpp_extension.CUDA_HOME": {
"Matcher": "GenericMatcher",
"paddle_api": "paddle.utils.cpp_extension.cpp_extension.CUDA_HOME"
Expand Down
2 changes: 2 additions & 0 deletions paconvert/api_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3752,6 +3752,8 @@ def get_paddle_nodes(self, args, kwargs):
code = "{}({})".format(self.get_paddle_api(), code)
node = ast.parse(code.strip("\n")).body
return node


class TensorFunc2PaddleFunc(BaseMatcher):
def generate_code(self, kwargs):

Expand Down

0 comments on commit ed17c4f

Please sign in to comment.