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

Change jit.save/load configs to config & update code examples #27056

Merged

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented Sep 4, 2020

PR types

Function optimization

PR changes

APIs

Describe

  1. By advice of xiaoguang: Support load state dict form inference model format save result #26718 (comment), change jit.save/load configs to config
  2. Rewrite all related example code based paddle 2.0 API

由于2.0-beta功能已经确定,里面使用的参数名仍然是configs,考虑到下一个版本参数改为config可能会引入不兼容问题,这里仍然兼容configs的写法

related FluidDoc PR:PaddlePaddle/docs#2553

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chenwhql chenwhql merged commit c1a8868 into PaddlePaddle:develop Sep 7, 2020
chenwhql added a commit to chenwhql/Paddle that referenced this pull request Sep 7, 2020
…Paddle#27056)

* change configs to config & update examples

* fix deprecate decorator conflict
chenwhql added a commit that referenced this pull request Sep 8, 2020
* Update set_dict method name & add aliases (#26700)

* update set_dict method name & add aliases

* fix var name error

* fix alias formats

* use set_state_dict in unittest

* add decorator solve compatible problem

* polish decorator

* replace layer set_state_dict by patched method

* remove import monkey path layer

* fix import function error

* add unittest for coverage

* Support load state dict form `inference model` format save result (#26718)

* support load infer model format state dict

* add unittests

* remove keep name table

* recolve circle inport

* fix compatible problem

* recover unittest

* polish doc and comment

* Change jit.save/load configs to config & update code examples (#27056)

* change configs to config & update examples

* fix deprecate decorator conflict
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.

3 participants