-
Notifications
You must be signed in to change notification settings - Fork 24.9k
[quant][graphmode] Move numerics changing passes before finalize #37514
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: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 Build failures summary and remediationsAs of commit f310ab2 (more details on the Dr. CI page): ✅ None of the build failures appear to be your fault 💚
1 job timed out:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 33 times. |
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
@@ -1133,7 +1107,6 @@ def forward(self, x): | |||
model = torch.jit.script(M()).eval() | |||
model = quantize_script(model, qconfig_dict, _test_only_eval_fn, [data], inplace=False, debug=True) | |||
FileCheck().check_not("quantized::conv2d") \ | |||
.check("CallMethod") \ |
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.
Why do we not check for CallMethod anymore?
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.
yeah, we'll inline the graph in convert so CallMethod from sub module is gone
row->elements().at(0).toStringRef()); | ||
row->elements().at(0).toStringRef() == "operators", | ||
"Expected operators but found ", | ||
row->elements().at(0).toStringRef()); |
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.
Should this change be here?
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.
this is clang format changes, got this when I run clang-format-all.py
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
…nalize" Summary: This is to constrain all numerics changing operations in insert quant dequant pass Test Plan: python test/test_quantization.py TestQuantizeScriptJitPasses Reviewers: . Subscribers: Tasks: Tags: [ghstack-poisoned]
This pull request has been merged in 5e0a24f. |
Stack from ghstack:
Summary:
This is to constrain all numerics changing operations in insert quant dequant pass
Test Plan:
python test/test_quantization.py TestQuantizeScriptJitPasses
Reviewers:
.
Subscribers:
Tasks:
Tags:
Differential Revision: D21364008