New class: op_version_registry, test=develop#26542
Merged
Shixiaowei02 merged 1 commit intoPaddlePaddle:developfrom Aug 24, 2020
Merged
New class: op_version_registry, test=develop#26542Shixiaowei02 merged 1 commit intoPaddlePaddle:developfrom
Shixiaowei02 merged 1 commit intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
|
✅ This PR's description meets the template requirements! |
7e7553c to
b674f59
Compare
Superjomn
reviewed
Aug 21, 2020
4be3eac to
fad0376
Compare
fad0376 to
ba37e6e
Compare
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
New features
PR changes
Others
Description
new class: op_version_registry
核心接口:
AddCheckpoint(string summary, OpVersionDesc desc)此方法会触发Op的version++OpVersionDesc,用于注册本次升级对应的修改点NewAttr(name, default_value)表示增加了一个attribute,并需要指定其向前兼容的默认值ModifyAttr(name, default_value)表示修改了attribute的行为,并需要指定其向前兼容的默认值其他注册方法可以按需增加
全局的
op_capatible_info会记录每个Op最新的版本号(version checkpoint的次数),并通过save_inference_model存储到模型中。其中记录的版本及描述,会帮助
Inference和Lite来对应升级策略;也可以自动搜集作为Release Notes的来源。设计文档见 Agroup:Op 版本监控及兼容性识别设计(#3366223)
Update
The new API
AddInputandAddOutputin PR2664