-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[CINN] implement strategy for generate shape #64636
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/cinn/hlir/pe/elementwise.h
Outdated
| #include "paddle/cinn/ir/ir.h" | ||
| #include "paddle/cinn/lang/builtin.h" | ||
| #include "paddle/cinn/lang/compute.h" | ||
| #include "paddle/pir/include/dialect/shape/utils/shape_or_data_expr.h" |
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.
可以换成用dim_expr.h
| #include "paddle/cinn/frontend/paddle/cpp/program_desc.h" | ||
| #include "paddle/cinn/frontend/paddle/model_parser.h" | ||
| #include "paddle/cinn/frontend/var_type_utils.h" | ||
| #include "paddle/cinn/hlir/dialect/operator/ir/manual_op.h" |
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.
这个manual_op.h也换成更具体的头文件吧
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.
好的
| PADDLE_ENFORCE(symbol_bindings.has_value(), | ||
| ::common::errors::PreconditionNotMet( | ||
| "Required symbol_bindings.has_value()==true.")); | ||
| dst_attrs[::pir::kSymbolBindings] = symbol_bindings.value(); | ||
| } else if (item.first == ::pir::kOutputDimExprs) { | ||
| auto dim_exprs = cinn::dialect::ConvertAttributeToDimExprs(item.second); | ||
| PADDLE_ENFORCE(dim_exprs.has_value(), | ||
| ::common::errors::PreconditionNotMet( | ||
| "Required dim_exprs.has_value()==true.")); |
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.
8e4c429 to
e7766b1
Compare
* refact Signed-off-by: ZelinMa557 <3388706467@qq.com>
e7766b1 to
678f0f4
Compare

PR Category
CINN
PR Types
New features
Description
implement strategy for generate shape op