-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Prim] Add p_norm_decomp #63156
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
[Prim] Add p_norm_decomp #63156
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
|
❌ The PR is not created using PR's template. You can refer to this Demo. |
6682283 to
af773c8
Compare
af773c8 to
95f6312
Compare
38c2e08 to
33e6a23
Compare
| return res; | ||
| } | ||
| } | ||
|
|
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.
建议组合算子签名和PHI/PIR签名保持一致,用namespace约束分类,函数名不要加_decomp。存量的可以后续统一修改
b49c1f1 to
32243a4
Compare
Xreki
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 for the atol
* add p_norm_decomp * use rsqrt * support for porder is float * update UT * update UT * update atol and rtol * support 0, 1, inf, -inf norm * update UT for 0, 1, inf, -inf norm * remove 0-norm for it has benn replaced with paddle.count_nonzero in linalg
* add p_norm_decomp * use rsqrt * support for porder is float * update UT * update UT * update atol and rtol * support 0, 1, inf, -inf norm * update UT for 0, 1, inf, -inf norm * remove 0-norm for it has benn replaced with paddle.count_nonzero in linalg
PR Category
Operator Mechanism
PR Types
New features
Description
Pcard-75624
Add
p_norm_decompas composite forwad API forp_norm