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. 304/306/308/327-329/332/351/363/365/369/371 #6115

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Aug 22, 2023

PaddlePaddle/PaConvert#112
API 功能缺失
304 torch.resolve_conj
306 torch.special.multigammaln
308 torch.testing.make_tensor
327 torch.Tensor.retains_grad torch中为属性,paddle中为函数调用不同
328 torch.distributed.monitored_barrier,torch中使用 torch.distributed.barrier 映射,torch.distributed.monitored_barrier无映射接口
329 torch.Tensor.bitwise_left_shift_

332 torch.Tensor.bitwise_right_shift_
351 torch.autograd.Function.jvp 参数和paddle.incubate.autograd.jvp(func, xs, v=None)不一致
363 torch.sparse.sampled_addmm torch中有spy(input)参数,paddle addmm中无spy(input)
365 torch.utils.data.default_convert
369 torch.nn.utils.stateless.functional_call
371 torch.layout torch中为Tensor属性,paddle中无对应属性

@paddle-bot
Copy link

paddle-bot bot commented Aug 22, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6115.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Aug 22, 2023
@co63oc co63oc changed the title 映射文档 No. 304/306/308/327-329 映射文档 No. 304/306/308/327-329/332/351/363/365/369/371 Aug 22, 2023
@@ -306,6 +306,8 @@
| 268 | [torch.resolve_neg](https://pytorch.org/docs/stable/generated/torch.resolve_neg.html#torch.resolve_neg) | | 功能缺失 |
| 269 | [torch.bitwise_left_shift](https://pytorch.org/docs/stable/generated/torch.bitwise_left_shift.html#torch.bitwise_left_shift) | | 功能缺失 |
| 270 | [torch.isin](https://pytorch.org/docs/stable/generated/torch.isin.html#torch.isin) | | 功能缺失 |
| 271 | [torch.resolve_conj](https://pytorch.org/docs/stable/generated/torch.resolve_conj.html#torch.resolve_conj) | | 功能缺失 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个是 paddle.conj

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有conjugate位设置,调用is_conj返回False
图片

@@ -667,6 +669,9 @@
| 182 | [torch.Tensor.bitwise_left_shift](https://pytorch.org/docs/stable/generated/torch.Tensor.bitwise_left_shift.html#torch.Tensor.bitwise_left_shift) | | 功能缺失 |
| 183 | [torch.Tensor.resolve_conj](https://pytorch.org/docs/stable/generated/torch.Tensor.resolve_conj.html#torch.Tensor.resolve_conj) | | 功能缺失 |
| 184 | [torch.Tensor.resolve_neg](https://pytorch.org/docs/stable/generated/torch.Tensor.resolve_neg.html#torch.Tensor.resolve_neg) | | 功能缺失 |
| 185 | [torch.Tensor.retains_grad](https://pytorch.org/docs/stable/generated/torch.Tensor.retains_grad.html#torch.Tensor.retains_grad) | | 功能缺失 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

paddle.Tensor.retain_grads

Copy link
Contributor Author

Choose a reason for hiding this comment

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

paddle中 retain_grads 不获取返回值
图片

Copy link
Collaborator

Choose a reason for hiding this comment

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

torch.Tensor.retains_grad这个是功能缺失,torch.Tensor.retain_grad 也一起弄下吧,torch.Tensor.retain_grad 可以和paddle对应上

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.retain_grad 已有文档,修改文档中名称paddle.Tensor.retain_grads

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit ee52505 into PaddlePaddle:develop Aug 28, 2023
1 check passed
@co63oc co63oc deleted the api332 branch August 30, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants