-
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
Update trainer api #10653
Update trainer api #10653
Conversation
… update-trainer-api
# trainer.save_params(save_dirname) | ||
# https://github.com/PaddlePaddle/Paddle/pull/10445 | ||
trainer.save_inference_model(save_dirname) | ||
trainer.save_params(save_dirname) |
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.
I noticed we switched from trainer.save_inference_model(save_dirname)
back to trainer.save_params(save_dirname)
. What is the diff between them? We discussed this here. To me save_inference_model looks more reasonable.
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.
#10648
@wangkuiyi Think that we only need to save parameters and do not need to save inference program, inference program should be provided by a Python function.
@@ -108,10 +99,11 @@ def event_handler(event): | |||
feed_order=['img', 'label']) |
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.
test_recognize_digits_conv
fails on this line.
copy and merged by #10674 |
fix: #10648