-
Notifications
You must be signed in to change notification settings - Fork 5.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
[PIR] [DynamicShape] Support symbolic shape inference for some pd_ops #63016
Conversation
…d_select, searchsorted, expand_as, pad, unbind, unique and unique_consecutive
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that e6151af's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
Sorry to inform you that 9c8e8a5's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
…existent file; remove interfaces attrs of ops in legacy_ops.yaml
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
// TODO(fty1777): Why is `y` marked optional in the yaml file? The shape of | ||
// `y` is currently empty and target_shape is all -1. The symbolic inference | ||
// cannot be done for now. | ||
|
||
// const auto &y_shape_or_data = | ||
// shape_analysis->GetShapeOrDataForValue(op->operand_source(1)); | ||
|
||
// // target_shape | ||
// std::vector<int> target_shape = | ||
// paddle::dialect::details::GetVectorAttr<int>(op, "target_shape"); | ||
// const std::vector<symbol::DimExpr> &output_dims = [&] { | ||
// std::vector<symbol::DimExpr> output_dims; | ||
// output_dims.reserve(target_shape.size()); | ||
// for (int shape : target_shape) { | ||
// output_dims.push_back(shape_analysis->DimExprBuilder().ConstSize(shape)); | ||
// } | ||
// return output_dims; | ||
// }(); | ||
|
||
// shape_analysis->SetShapeOrDataForValue(op->result(0), y_shape_or_data); |
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.
全去掉。不要注释代码
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
PR Category
Others
PR Types
Others
Description
Pcard-67164
Add symbolic shape inference for the following pd_op-s: