Support quantization of condition block#37498
Merged
yghstill merged 11 commits intoPaddlePaddle:developfrom Dec 10, 2021
Merged
Support quantization of condition block#37498yghstill merged 11 commits intoPaddlePaddle:developfrom
yghstill merged 11 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
wanghaoshuang
previously approved these changes
Nov 25, 2021
Contributor
wanghaoshuang
left a comment
There was a problem hiding this comment.
遗留两个问题:
- PaddleLite提出:子图中的Persistable变量(量化的fakexxxx节点的inscale等参数)没有在LoadCombinedParamsPb时候读取,在LoadCombinedParamsPb函数中加上对所有子图遍历可以trick掉。 这个问题需要和PaddleLite确认如果解决更合理,并在后续PR中修复。
op_device设置为空,需要确认是否有负面影响。
python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py
Outdated
Show resolved
Hide resolved
qingqing01
reviewed
Nov 25, 2021
python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py
Show resolved
Hide resolved
python/paddle/fluid/contrib/slim/quantization/quantization_pass.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py
Outdated
Show resolved
Hide resolved
ceci3
reviewed
Nov 25, 2021
python/paddle/fluid/contrib/slim/quantization/quantization_pass.py
Outdated
Show resolved
Hide resolved
|
Sorry to inform you that 4e70480's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
31dbffb to
10a8f94
Compare
Contributor
Author
Done. |
Contributor
Author
Done. |
XieYunshen
approved these changes
Dec 9, 2021
wanghaoshuang
approved these changes
Dec 10, 2021
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
Support sub graph quant in
PostTrainingQuantizationAPI.