-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[CINN]Add InferSymbolicShape for some TensorArray ops #65992
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
[CINN]Add InferSymbolicShape for some TensorArray ops #65992
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
4a6878b to
19cc4cf
Compare
| .dyn_cast<symbol::RankedTensorArrayShapeOrDataDimExprs>(); | ||
|
|
||
| const auto &UseStackInfer = [&]() { | ||
| std::vector<symbol::DimExpr> result_shape = x_shape_data.GetShapeHint(); |
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.
cosnt &
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.
收到,下一个PR顺带修改
| }; | ||
|
|
||
| const auto &UseConcatInfer = [&]() { | ||
| std::vector<symbol::DimExpr> result_shape = x_shape_data.GetShapeHint(); |
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.
同上
| }); | ||
| } | ||
|
|
||
| void AddCstrForOutputs(const pir::Value &origin_input, |
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.
在cc文件里,不对外导出的函数全部放到匿名空间里实现
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.
收到,下一个PR顺带修改
…5992) * [CINN]Add some InferSymbolicShape to support TensorArray * fix * add support for data init * fix
PR Category
CINN
PR Types
Improvements
Description
Pcard-67164
This PR adds InferSymbolicShape for some TensorArray ops.