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

Fix fused_attention_op scope. #37065

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

limin2021
Copy link
Contributor

@limin2021 limin2021 commented Nov 9, 2021

PR types

Bug fixes

PR changes

OPs

Describe

问题:
目前的fused_attention_op包含的范围是:
image
事实上,这里的layer_norm需要根据pre_layer_norm的值进行判断,只有为false的时候,此处才需要调用layer_norm。
紧随其后的pre_layer_norm为true时调用的layer_norm,放到fused_feedforward中处理。

修改:
image

zkh2016
zkh2016 previously approved these changes Nov 9, 2021
xingfeng01
xingfeng01 previously approved these changes Nov 9, 2021
@lanxianghit lanxianghit merged commit ad44a40 into PaddlePaddle:develop Nov 10, 2021
zkh2016 pushed a commit to zkh2016/Paddle that referenced this pull request Nov 16, 2021
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.

4 participants