Skip to content
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

Closed

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented May 15, 2018

fix: #10648

# trainer.save_params(save_dirname)
# https://github.com/PaddlePaddle/Paddle/pull/10445
trainer.save_inference_model(save_dirname)
trainer.save_params(save_dirname)
Copy link
Contributor

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.

Copy link
Member Author

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'])
Copy link
Contributor

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.

@daming-lu daming-lu mentioned this pull request May 16, 2018
@jacquesqiao
Copy link
Member Author

copy and merged by #10674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

High-level API Trainer constructor cannot be like require both trainer_program and inference_program
2 participants