-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Inference] Predictor support pir model save(.json) #65223
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提交成功,感谢你对开源项目的贡献! |
xiaoguoguo626807
left a comment
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
| pir::Type type_ = pir::GetDataTypeFromValue(value); | ||
| phi::DataType type_data = paddle::dialect::TransToPhiDataType(type_); | ||
| dev_ctx->Alloc(tensor_temp, type_data); | ||
| if (!value.type() || value.type().isa<pir::DenseTensorType>()) { |
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.
if (!value.type()) 时会有问题
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.
哦确实,那我只限定后面那个了
* predictor save * fix * 删除value.type() * pass优化后的不走pass了 * 根据旧ir use_optimized_model_写pir逻辑 * predictor support save optimized model(pir .json) * optimized_model打印写错 * 加打印日志 --------- Co-authored-by: yuanlehome <[email protected]>
PR Category
Inference
PR Types
New features
Description
card-71500
predictor support pir save.