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

[PIR] Add group_norm_silu_xpu_fuse_pass #63342

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

linkk08
Copy link
Contributor

@linkk08 linkk08 commented Apr 9, 2024

PR Category

Custom Device

PR Types

New features

Description

新增融合算子group_norm_silu_xpu_fuse_pass的pir实现,将group_norm和silu进行了融合。在xpu平台上,经过实测,性能提升了约10%。

Copy link

paddle-bot bot commented Apr 9, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Apr 9, 2024
Comment on lines 68 to 75
std::vector<int64_t> x_shape =
pir::GetShapeFromValue(match_ctx.Tensor("X"));
std::vector<int64_t> y_shape =
pir::GetShapeFromValue(match_ctx.Tensor("Y"));
if (x_shape.size() == y_shape.size()) {
return true;
}
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

这个shape判断有点多余吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个shape判断有点多余吧?

已删除

@yuanlehome yuanlehome changed the title [pir] add group_norm_silu [PIR] Add group_norm_silu_xpu_fuse_pass Apr 11, 2024
@yuanlehome yuanlehome merged commit 7968f84 into PaddlePaddle:develop Apr 11, 2024
28 of 30 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