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

[Inference] fix preln_residual_bias_fuse_pass bug in TNT_small model #46178

Conversation

zhoutianzi666
Copy link
Contributor

@zhoutianzi666 zhoutianzi666 commented Sep 19, 2022

PR types

Others

PR changes

Others

Describe

Others
fix preln_residual_bias_fuse_pass bug in TNT_small model
We can not accept that two or more layer_norm is connected to elementwise1_out. This will lead to two or more PrelnResidualBias patterns is found near elementwise1_out, and these patterns will interact on each other.
image

  • above figure fused after preln_residual_bias_fuse_pass is below

image

@paddle-bot
Copy link

paddle-bot bot commented Sep 19, 2022

你的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 contributor External developers status: proposed labels Sep 19, 2022
@zhoutianzi666 zhoutianzi666 changed the title [Inference] [Inference] fix preln_residual_bias_fuse_pass bug in TNT_small model Sep 19, 2022
wanghaoshuang
wanghaoshuang previously approved these changes Sep 19, 2022
@zhoutianzi666 zhoutianzi666 force-pushed the fix_preln_residual_bias_fuse_pass branch from e7d792b to c021a7f Compare September 19, 2022 05:44
@qingqing01 qingqing01 merged commit bfee398 into PaddlePaddle:develop Sep 20, 2022
zhoutianzi666 added a commit to zhoutianzi666/Paddle that referenced this pull request Sep 20, 2022
qingqing01 pushed a commit that referenced this pull request Sep 20, 2022
…46178) (#46260)

* fix preln_residual_bias_fuse_pass bug in TNT_small model
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.

3 participants