Skip to content

[Inference] fix Predictor support pir model save(.json) #65714

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

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

lizexu123
Copy link
Contributor

@lizexu123 lizexu123 commented Jul 4, 2024

PR Category

Inference

PR Types

Bug fixes

Description

card-71500
修复了pdmodel保存优化后模型(optimized_.json)的bug(输入维度不匹配),修复了optimized_json中输入类型为pd_op.feed,sub_scope中找不到输入的var

Copy link

paddle-bot bot commented Jul 4, 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.

Comment on lines 1045 to 1047
auto is_persistable =
var.attribute<pir::BoolAttribute>(kAttrIsPersistable);
if (is_persistable && is_persistable.data()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

parameter op的var一定是persistable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

哦哦

@yuanlehome yuanlehome merged commit e6867a8 into PaddlePaddle:develop Jul 5, 2024
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.

2 participants