[quant][graphmode] Support quantized::batch_norm2d_relu fusion for tracing#39645
Closed
jerryzh168 wants to merge 8 commits intogh/jerryzh168/338/basefrom
Closed
[quant][graphmode] Support quantized::batch_norm2d_relu fusion for tracing#39645jerryzh168 wants to merge 8 commits intogh/jerryzh168/338/basefrom
jerryzh168 wants to merge 8 commits intogh/jerryzh168/338/basefrom
Conversation
…acing Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
This was referenced Jun 8, 2020
jerryzh168
added a commit
that referenced
this pull request
Jun 8, 2020
…acing Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 26bb3d5 Pull Request resolved: #39645
💊 CI failures summary and remediationsAs of commit 0bab91e (more details on the Dr. CI page):
Extra GitHub checks: 1 failed
ci.pytorch.org: 1 failedThis 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 or post in the (internal) Dr. CI Users group. This comment has been revised 32 times. |
| .check_not("aten::relu") \ | ||
| .check_not("aten::relu_") \ | ||
| .run(model.graph) | ||
| for tracing in [True, False]: |
Contributor
There was a problem hiding this comment.
This test: test_qbatch_norm_relu can only run in FBGEMM as batch norm is not supported as an op in qnnpack, please add a check for qengine for this test.
Contributor
Author
There was a problem hiding this comment.
OK, I'll do skipIfNoFBGEMM
raghuramank100
approved these changes
Jun 8, 2020
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Jun 8, 2020
…acing Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: a5bd3d3 Pull Request resolved: #39645
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Jun 9, 2020
…acing Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 02cd9af Pull Request resolved: #39645
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Jun 10, 2020
…acing Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 60cac49 Pull Request resolved: #39645
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
jerryzh168
added a commit
that referenced
this pull request
Jun 10, 2020
…acing Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 8b4637b Pull Request resolved: #39645
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
This was referenced Jun 10, 2020
…sion for tracing" Summary: This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D21942111](https://our.internmc.facebook.com/intern/diff/D21942111) [ghstack-poisoned]
Contributor
|
This pull request has been merged in c3d4053. |
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
…acing (pytorch#39645) Summary: Pull Request resolved: pytorch#39645 This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both scripting and tracing Test Plan: python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu Imported from OSS Differential Revision: D21942111 fbshipit-source-id: 680e16076a37b96d2485d5cbc39ce9a045c319c3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
Summary:
This PR added quantization support for handling BatchNorm2d and ReLU(or F.relu) in both
scripting and tracing
Test Plan:
python test/test_quantization.py TestQuantizeScriptPTSQOps.test_qbatchnorm_relu
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D21942111