Skip to content
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

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 16, 2023

PR Docs

#112

PR APIs

299 torch.cumulative_trapezoid
305 torch.special.i1
316 torch.special.i1e
317 torch.special.i0
322 torch.Tensor.corrcoef

@paddle-bot
Copy link

paddle-bot bot commented Jul 16, 2023

Thanks for your contribution!

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jul 16, 2023
@co63oc co63oc changed the title 转换规则 No.322 转换规则 No.299/305/316/317/322 Jul 16, 2023
"torch.Tensor.corrcoef": {
"Matcher": "GenericMatcher",
"paddle_api": "paddle.Tensor.corrcoef",
"args_list": [],
Copy link
Contributor

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
    }

这个应该这三个部分可以去掉, 简化代码是不是好一点

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

"torch.Tensor.corrcoef": {},
"torch.Tensor.corrcoef": {
"Matcher": "GenericMatcher",
"paddle_api": "paddle.Tensor.corrcoef",
Copy link
Contributor

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哪个是正确的,和文档写的不一样。

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@zhwesky2010 zhwesky2010 merged commit 827be74 into PaddlePaddle:master Jul 18, 2023
@co63oc co63oc deleted the doc0716_2 branch August 4, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR status: proposed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants