-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
转换规则 No.299/305/316/317/322 #174
Conversation
Thanks for your contribution! |
paconvert/api_mapping.json
Outdated
"torch.Tensor.corrcoef": { | ||
"Matcher": "GenericMatcher", | ||
"paddle_api": "paddle.Tensor.corrcoef", | ||
"args_list": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"args_list": [],
"kwargs_change": {},
"paddle_default_kwargs": {
"rowvar": true
}
这个应该这三个部分可以去掉, 简化代码是不是好一点
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
paconvert/api_mapping.json
Outdated
"torch.Tensor.corrcoef": {}, | ||
"torch.Tensor.corrcoef": { | ||
"Matcher": "GenericMatcher", | ||
"paddle_api": "paddle.Tensor.corrcoef", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle.linalg.corrcoef 和 paddle.Tensor.corrcoef哪个是正确的,和文档写的不一样。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已有 tests/test_corrcoef.py torch.corrcoef 转为 paddle.linalg.corrcoef
torch.Tensor.corrcoef 转为 paddle.Tensor.corrcoef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
PR Docs
#112
PR APIs