Skip to content

[CINN] Enhance HorizontalFusion with shared input values #71811

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

Merged
merged 13 commits into from
Mar 26, 2025

Conversation

huangjiyi
Copy link
Member

@huangjiyi huangjiyi commented Mar 20, 2025

PR Category

CINN

PR Types

Improvements

Description

Pcard-76996

  • Enhance HorizontalFusion with shared input values and limit it by estimating the memory increase

Copy link

paddle-bot bot commented Mar 20, 2025

你的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.

@huangjiyi huangjiyi force-pushed the enhance_horizontal_fusion branch from c29f725 to 0cfa775 Compare March 25, 2025 02:33
Comment on lines +758 to +763
if (reduce_dims_product.isa<std::int64_t>() &&
reduce_dims_product.dyn_cast<std::int64_t>() > 1024) {
VLOG(4) << "Can not fuse trivial to reduce with large reduce dims: "
<< reduce_dims_product.dyn_cast<std::int64_t>();
return std::nullopt;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

动态shape这里怎么考虑?

@huangjiyi huangjiyi merged commit a27df21 into PaddlePaddle:develop Mar 26, 2025
32 checks passed
co63oc pushed a commit to co63oc/Paddle that referenced this pull request Mar 27, 2025
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants