-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Support quantization of condition block #37498
Support quantization of condition block #37498
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
遗留两个问题:
- 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add UT!
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
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
Done. |
Done. |
…_while_quant_post
…_while_quant_post
…_while_quant_post
PR types
Function optimization
PR changes
APIs
Describe
Support sub graph quant in
PostTrainingQuantization
API.