-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[quant][pt2e] Add support for SharedQuantizationSpec #102184
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/102184
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 475f45f: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D46043026 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D46043026 |
bd44f86
to
e698fb1
Compare
e698fb1
to
890a42f
Compare
This pull request was exported from Phabricator. Differential Revision: D46043026 |
890a42f
to
b336966
Compare
This pull request was exported from Phabricator. Differential Revision: D46043026 |
b336966
to
0a0515c
Compare
This pull request was exported from Phabricator. Differential Revision: D46043026 |
0a0515c
to
a8dfb6b
Compare
This pull request was exported from Phabricator. Differential Revision: D46043026 |
a8dfb6b
to
053192a
Compare
This pull request was exported from Phabricator. Differential Revision: D46043026 |
Summary: Pull Request resolved: pytorch#102184 This PR adds support for SharedQuantizationSpec, it's used to express the sharing between two Tensors in the prepared graph, the Tensor will either be input of some node (expressed as a Tuple of fx nodes) or output of some node (expressed as an fx Node) Test Plan: ``` buck2 test mode/opt caffe2/test:quantization_pt2e -- 'caffe2/test:quantization_pt2e' buck2 test mode/opt caffe2/test:quantization_pt2e -- --exact 'caffe2/test:quantization_pt2e - test_resnet18_with_quantizer_api (quantization.pt2e.test_quantize_pt2e.TestQuantizePT2EModels)' ``` Reviewed By: kimishpatel Differential Revision: D46043026 fbshipit-source-id: f284c28b1ea123d301cd9b87f86ddcf8781bf128
053192a
to
475f45f
Compare
This pull request was exported from Phabricator. Differential Revision: D46043026 |
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Summary:
This PR adds support for SharedQuantizationSpec, it's used to express the sharing between
two Tensors in the prepared graph, the Tensor will either be input of some node (expressed as a Tuple of fx nodes) or
output of some node (expressed as an fx Node)
Test Plan:
Differential Revision: D46043026