-
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. 304/306/308/327-329/332/351/363/365/369/371 #241
Conversation
Thanks for your contribution! |
|
||
from apibase import APIBase | ||
|
||
obj = APIBase("torch.Tensor.retains_grad") |
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.
这个需要把属性调用形式转写成 函数调用形式,看一下 Attribute2Func
这个Matcher
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.
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.
torch.Tensor.retains_grad
这个是功能缺失,torch.Tensor.retain_grad
也一起弄下吧,torch.Tensor.retain_grad
可以和paddle对应上
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.
已有retain_grad单测 tests/test_Tensor_retain_grad.py,转换为 paddle.Tensor.retain_grads
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.
LGTM
PR Docs
#112
映射文档 PaddlePaddle/docs#6115
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中无对应属性
PR APIs