Update set_dict method name & add aliases#26700
Merged
chenwhql merged 15 commits intoPaddlePaddle:developfrom Sep 3, 2020
Merged
Update set_dict method name & add aliases#26700chenwhql merged 15 commits intoPaddlePaddle:developfrom
chenwhql merged 15 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
… saveload/update_api_names
…ql/Paddle into saveload/update_api_names
chenwhql
added a commit
to chenwhql/Paddle
that referenced
this pull request
Sep 7, 2020
* 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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
Function optimization
PR changes
APIs
Describe
【兼容升级】Refine
set_dictrelated APIs:set_dictmethod name toset_state_dict, add alias for compatibilityLayer.set_dict->Layer.set_state_dictDataParallel.set_dict->DataParallel.set_state_dictOptimizer.set_dict->Optimizer.set_state_dictLearningRateDecay.set_dict->LearningRateDecay.set_state_dict_LRScheduler.set_dict->_LRScheduler.set_state_dictstat_dictargument tostate_dict, which is typo in old implementations, add decoratordeprecate_stat_dictfor compatibilityLayer.set_dict(stat_dict)->Layer.set_dict(state_dict)DataParallel.set_dict(stat_dict)->DataParallel.set_dict(state_dict)Optimzier.load(stat_dict)->Optimzier.load(state_dict)load_dict, which is a deprecated API, add alias for compatibilityrelated cn doc PR: PaddlePaddle/docs#2535