-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[Quant][ONEDNN] Fix weight reorder issue for grouped convolution #91934
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/91934
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 4 PendingAs of commit f2ab2a5: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
0b46451 to
b8f546d
Compare
|
Shall we target this PR to PT 2.0 release? |
OK |
bec298b to
1ac56bd
Compare
1ac56bd to
6c35c60
Compare
|
@pytorchbot merge |
Merge failedReason: Approval needed from one of the following (Rule 'superuser'): Details for Dev Infra teamRaised by workflow job |
|
Hi @jerryzh168. Could you review? Thanks. |
|
Hi @jerryzh168. Could you please take a look of this PR? It involves onednn backend only. Thanks! |
…onednn quant backend
6c35c60 to
f2ab2a5
Compare
|
@pytorchbot merge |
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
For onednn quant backend only.
QConv weight may be reordered to another blocked format if input shape is changed at runtime. It's a bug that group info is not retained for such reordering. This may lead to wrong shape of weight after reordering. This PR fixes this bug.
Test plan
python test/test_quantization.py -k test_conv_reorder_issue_onednn
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10