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
[quant] Support 2 dim input in quantized batchnorm 1d #51597
Conversation
Summary: aliging quantized batchnorm behavior with fp batchnorm Test Plan: python test/test_quantization.py TestQuantizedOps.test_batch_norm python test/test_quantization.py TestQuantizedOps.test_batch_norm_relu Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: aliging quantized batchnorm behavior with fp batchnorm Test Plan: python test/test_quantization.py TestQuantizedOps.test_batch_norm python test/test_quantization.py TestQuantizedOps.test_batch_norm_relu Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 85cb7f98979587d1ea3dda4223ab0b8e94d7c06a Pull Request resolved: #51597
💊 CI failures summary and remediationsAs of commit 0309da1 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages: pytorch_linux_xenial_py3_6_gcc5_4_test (1/1)Step: "Run tests" (full log | diagnosis details | 🔁 rerun)
|
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.
looks good, thank you! Did we check that this is the same behavior as fp32 for dim==2? I don't think that needs to be in the unit tests, just confirming as I haven't actually looked into the fp32 op implementation for this issue.
yeah we have tests for both quantized batchnorm and batchnorm_relu that matches the reference implementation with dequant - float batchnorm - quant |
This pull request has been merged in d8742ee. |
Stack from ghstack:
Summary:
aliging quantized batchnorm behavior with fp batchnorm
Test Plan:
python test/test_quantization.py TestQuantizedOps.test_batch_norm
python test/test_quantization.py TestQuantizedOps.test_batch_norm_relu
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D26212489