-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[quant][fx] Remove is_output_quantized from QuantizeHandler #74843
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
Conversation
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 05c99f3 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 2d9ac63 Pull Request resolved: #74843
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: e584d83 Pull Request resolved: #74843
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
Summary: is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35190541](https://our.internmc.facebook.com/intern/diff/D35190541) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: #74843 is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend, this is now supported by backend_config_dict, and we can remove this function now. Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so we can remove them Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Imported from OSS Reviewed By: andrewor14 Differential Revision: D35190541 fbshipit-source-id: 623d961810737ec01e1f8b269ec48a6a99bb284a
|
Hey @jerryzh168. |
Stack from ghstack (oldest at bottom):
Summary:
is_output_quantized is used to check if we should quantize the op based on the dtype configuration in qconfig and what
is supported by the backend, we'll skip inserting observer if the dtype configuration is not supported by the backend,
this is now supported by backend_config_dict, and we can remove this function now.
Also we previously supported fp16 static quantization for some ops for one of our internal use case, and now it is not required, so
we can remove them
Test Plan:
python test/test_quantization.py TestQuantizeFx
python test/test_quantization.py TestQuantizeFxOps
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D35190541