Skip to content

转换规则修改/新增#592

Merged
zhwesky2010 merged 4 commits intoPaddlePaddle:masterfrom
Xuxuanang:Xuxuanang7
Jun 13, 2025
Merged

转换规则修改/新增#592
zhwesky2010 merged 4 commits intoPaddlePaddle:masterfrom
Xuxuanang:Xuxuanang7

Conversation

@Xuxuanang
Copy link
Contributor

PR Docs

PR APIs

torch.Tensor.baddbmm
torch.Tensor.baddbmm_
torch.Tensor.lu_solve
torch.Tensor.positive
torch.optim.lr_scheduler.LRScheduler
torch.special.gammaln
torch._foreach_lgamma
torch._foreach_lgamma_
torch._foreach_sqrt
torch._foreach_sqrt_
torch.hub.load_state_dict_from_url
torch.positive

@paddle-bot
Copy link

paddle-bot bot commented Jun 12, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Jun 12, 2025
@@ -3234,7 +3253,8 @@
]
},
"torch.Tensor.positive": {
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.lu_solve、torch.Tensor.positive能直接对应到 Tensor类方法

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没有这些类方法

]
},
"torch.Tensor.baddbmm": {
"Matcher": "AddMRMatcher",
Copy link
Collaborator

Choose a reason for hiding this comment

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

这些没用的Matcher可以删掉了,或者移到 legacy.py 里去

Copy link
Contributor Author

@Xuxuanang Xuxuanang Jun 13, 2025

Choose a reason for hiding this comment

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

torch.addmv等API还在用这个Matcher

obj.run(pytorch_code, ["result"], check_value=False)


# paddle.Tensor.bernoulli_ parameter p is different from torch, which has bug
Copy link
Collaborator

Choose a reason for hiding this comment

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

paddle框架修复这个bug了,可以开启case试试

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好像还没修好

Copy link
Collaborator

Choose a reason for hiding this comment

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

好像还没修好

修好了,原因是CI没有更新到最新版本编译的paddle

"verbose"
]
},
"torch.optim.lr_scheduler.LRScheduler": {
Copy link
Collaborator

@zhwesky2010 zhwesky2010 Jun 13, 2025

Choose a reason for hiding this comment

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

这个先只写映射文档吧,matcher里先不转换了,因为确实不太好转,基类的设计不同。

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 566badb into PaddlePaddle:master Jun 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants