-
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_save_load】add null type saveload and modify save_inference_model api #63438
【pir_save_load】add null type saveload and modify save_inference_model api #63438
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -578,7 +674,12 @@ def save_inference_model( | |||
except OSError as e: | |||
if e.errno != errno.EEXIST: | |||
raise | |||
model_path = path_prefix + ".pdmodel" | |||
|
|||
if in_pir_mode(): |
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.
这样写的话函数中引入了太多in_pir_mode的判断,显得有点乱,是否考虑直接新开一个pir的完整函数分支,在主函数中引入。
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修改
… api (PaddlePaddle#63438) * add nulltype saveload * add load test * add save * modify * modify load_inference_model * modify loadinference
PR Category
others
PR Types
Improvements
Description
pcard-67164
TODO:
predictor 相关的内容需要调研,如何和pir 的saveload对接