Update 2.0 Save/Load API names/arguments/doc examples #27138
Merged
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
关于save load的一些API形态改动,为避免2.0-beta宣传后,2.0-RC API又发生变动,这里cherry-pick一下,相关功能之前已经在2.0-beta中,本次cherry-pick主要改动接口形态
Cherry-pick PRs:
set_dict
方法名为set_state_dict
,方法中的stat_dict
参数名统一改为state_dict
configs
参数名为config
,单数与SaveLoadConfig一致inference model
format save result #26718