Skip to content

Subgraph support for quantization tools#8012

Merged
zhanghuanrong merged 3 commits into
masterfrom
zhalei/quantize_subgraph
Aug 11, 2021
Merged

Subgraph support for quantization tools#8012
zhanghuanrong merged 3 commits into
masterfrom
zhalei/quantize_subgraph

Conversation

@zhanghuanrong
Copy link
Copy Markdown
Contributor

Description: Describe your changes.

Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

@zhanghuanrong zhanghuanrong requested a review from a team as a code owner June 9, 2021 22:59
@zhanghuanrong zhanghuanrong requested a review from yufenglee June 9, 2021 22:59
Comment thread onnxruntime/python/tools/quantization/onnx_quantizer.py Outdated
@david-macleod
Copy link
Copy Markdown

This looks great, I was looking to fix the same issue. Are you targeting the 1.9 release?

By default, not do enable subgraph quantization to make it consistent with existing behavior.
It should be OK to enable it at quantize_dynamic mode with extra_options.
@zhanghuanrong zhanghuanrong force-pushed the zhalei/quantize_subgraph branch from 4dc1083 to cfcec07 Compare August 3, 2021 19:28
@zhanghuanrong
Copy link
Copy Markdown
Contributor Author

This looks great, I was looking to fix the same issue. Are you targeting the 1.9 release?

Should be in master branch soon.

Comment thread onnxruntime/python/tools/quantization/onnx_quantizer.py Outdated
Comment thread onnxruntime/python/tools/quantization/onnx_quantizer.py Outdated
Comment thread onnxruntime/python/tools/quantization/onnx_quantizer.py Outdated
Comment thread onnxruntime/python/tools/quantization/quantize.py Outdated
Copy link
Copy Markdown
Member

@yufenglee yufenglee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@zhanghuanrong zhanghuanrong merged commit c6ef6b5 into master Aug 11, 2021
@zhanghuanrong zhanghuanrong deleted the zhalei/quantize_subgraph branch August 11, 2021 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants