-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Arm]Add fused_attention #9878
[Arm]Add fused_attention #9878
Conversation
Thanks for your contribution! |
281fb61
to
8fa178a
Compare
d3f0036
to
8468d87
Compare
5dacfba
to
1864180
Compare
1f78c9c
to
84a28e0
Compare
lite/api/paddle_use_passes.h
Outdated
@@ -111,3 +111,4 @@ USE_MIR_PASS(reshape_calc_offline_pass); | |||
USE_MIR_PASS(keepdims_convert_pass); | |||
USE_MIR_PASS(op_fusion_minimal_set_pass); | |||
USE_MIR_PASS(lite_sigmoid_elementmul_fuse_pass); | |||
USE_MIR_PASS(lite_transformer_attention_fuse_pass); |
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.
我感觉不用加 lite_ 前缀了吧?
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.
done
lite/core/optimizer/mir/fusion/transformer_attention_fuse_pass.cc
Outdated
Show resolved
Hide resolved
lite/core/optimizer/mir/fusion/transformer_attention_fuse_pass.cc
Outdated
Show resolved
Hide resolved
lite/core/optimizer/mir/fusion/transformer_attention_fuse_pass.cc
Outdated
Show resolved
Hide resolved
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,剩下的可以后面改
} else { | ||
return; | ||
} |
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.
不需要else
.BindTargets({TARGET(kARM)}) | ||
.ExcludeTargets( | ||
{TARGET(kXPU), TARGET(kOpenCL), TARGET(kMetal), TARGET(kNNAdapter)}) |
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.
.BindTargets({TARGET(kARM)}) | |
.ExcludeTargets( | |
{TARGET(kXPU), TARGET(kOpenCL), TARGET(kMetal), TARGET(kNNAdapter)}) | |
.ExcludeTargets({TARGET(kAny)) | |
.BindTargets({TARGET(kARM)}) |
PR devices
ARM
PR types
New features
PR changes
PASS, OP
Description