-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility] Add paddle.compat.nn.functional.linear
#76144
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #76144 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 3
Lines ? 12
Branches ? 0
===========================================
Hits ? 12
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c4cb857 to
e730ba8
Compare
paddle.compat.softmax is removed Adjust some of the import line position
3d556e5 to
d6233c0
Compare
paddle.compat.nn.functional.linearpaddle.compat.nn.functional.linear and remove paddle.compat.softmax
zhwesky2010
left a comment
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
XiaoguangHu01
left a comment
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
paddle.compat.nn.functional.linear and remove paddle.compat.softmaxpaddle.compat.nn.functional.linear
PR Category
Operator Mechanism
PR Types
New features
Description
Torch 兼容的
paddle.compat.nn.functional.linear。实现是 _C_ops.matmul (transpose_y = True) + _C_ops.add。PaConvert 已通过。性能数据(与torch对比):此外,调整了:
compat.pyinto a folder of separate func impls #76121引入的
paddle.compat.softmax。paddle.softmax已经存在,并且基于compat_softmax,所以paddle.compat.softmax没有存在的必要。还调整了一下几个__init__.py的 import 格式。Pcard-89620