Skip to content

Conversation

@Hongqing-work
Copy link
Contributor

PR Category

CINN

PR Types

Improvements

Description

Pcard-67164
This PR adds InferSymbolicShape for some TensorArray ops.

@paddle-bot
Copy link

paddle-bot bot commented Jul 12, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Hongqing-work Hongqing-work force-pushed the add-infer-func-for-tensor-array branch from 4a6878b to 19cc4cf Compare July 15, 2024 05:09
.dyn_cast<symbol::RankedTensorArrayShapeOrDataDimExprs>();

const auto &UseStackInfer = [&]() {
std::vector<symbol::DimExpr> result_shape = x_shape_data.GetShapeHint();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cosnt &

Copy link
Contributor Author

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();
Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在cc文件里,不对外导出的函数全部放到匿名空间里实现

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

收到,下一个PR顺带修改

@Hongqing-work Hongqing-work merged commit 18a5640 into PaddlePaddle:develop Jul 17, 2024
lixcli pushed a commit to lixcli/Paddle that referenced this pull request Jul 22, 2024
…5992)

* [CINN]Add some InferSymbolicShape to support TensorArray

* fix

* add support for data init

* fix
@Hongqing-work Hongqing-work deleted the add-infer-func-for-tensor-array branch September 5, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants