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

Correct 2.0 API usage in hapi.model.load (#26829) #26927

Conversation

LiuChiachi
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Describe

为了适应2.0新版的optimizer API 的更新(set_dict -> set_state_dict),需要在高级API中的hapi.model.load做相应的修改。
同时,hapi.model.load对原有paddle.fluid.optimizer下的优化器也做了兼容

* replace fluid.optimizer.set_dict with optimizer.set_state_dict

* replace fluid.optimizer.set_dict with optimizer.set_state_dict

* add coverage rate

* Increase coverage rate, fix code style

* Increase coverage rate, fix code style

* add fit to generate optimizer.state_dict() to save .pdopt to increase coverage rate

* delete http.log
@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 2, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@guoshengCS guoshengCS merged commit 64a118f into PaddlePaddle:release/2.0-beta Sep 3, 2020
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