-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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】modify FusedMatmulAddGradAddPattern #58537
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
3c7c27a
to
e3055ea
Compare
paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc
Outdated
Show resolved
Hide resolved
paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc
Outdated
Show resolved
Hide resolved
paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_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
@@ -104,6 +106,18 @@ StandaloneExecutor::StandaloneExecutor(const platform::Place& place, | |||
"@fetch"; | |||
} | |||
} | |||
|
|||
if (FLAGS_enable_fused_pass) { | |||
pir::PassManager pm(pir::IrContext::Instance()); |
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.
PassManger 在前端也已经bind出来了,后续是否可以考虑支持在Python端管理和开启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.
目前仅为临时测试使用,后续可结合python端pass一起设计开关
* modify * modify * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * code style * delete flag * Update paddle/fluid/framework/new_executor/standalone_executor.cc
* modify * modify * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * code style * delete flag * Update paddle/fluid/framework/new_executor/standalone_executor.cc
* modify * modify * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * Update paddle/fluid/pir/transforms/fusion/fused_linear_param_grad_add_pass.cc * code style * delete flag * Update paddle/fluid/framework/new_executor/standalone_executor.cc
PR types
others
PR changes
others
Description
pcard-67164
修复pass