Skip to content

Conversation

@Xia-Weiwen
Copy link
Collaborator

@Xia-Weiwen Xia-Weiwen commented Jan 10, 2023

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

@pytorch-bot pytorch-bot bot added the release notes: quantization release notes category label Jan 10, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Jan 10, 2023

🔗 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 Pending

As of commit f2ab2a5:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@Xia-Weiwen Xia-Weiwen requested a review from jgong5 January 10, 2023 00:57
@github-actions github-actions bot added the module: cpu CPU specific problem (e.g., perf, algorithm) label Jan 10, 2023
@Xia-Weiwen Xia-Weiwen added the intel This tag is for PR from Intel label Jan 10, 2023
@Xia-Weiwen Xia-Weiwen force-pushed the onednn_grouped_conv_reorder branch from 0b46451 to b8f546d Compare January 10, 2023 07:22
@jgong5
Copy link
Collaborator

jgong5 commented Jan 13, 2023

Shall we target this PR to PT 2.0 release?

@Xia-Weiwen
Copy link
Collaborator Author

Shall we target this PR to PT 2.0 release?

OK

@Xia-Weiwen Xia-Weiwen marked this pull request as ready for review January 13, 2023 09:41
@Xia-Weiwen Xia-Weiwen force-pushed the onednn_grouped_conv_reorder branch 2 times, most recently from bec298b to 1ac56bd Compare January 18, 2023 12:12
@Xia-Weiwen Xia-Weiwen force-pushed the onednn_grouped_conv_reorder branch from 1ac56bd to 6c35c60 Compare January 27, 2023 08:07
@Xia-Weiwen
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 27, 2023
@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: Approval needed from one of the following (Rule 'superuser'):
kwen2501, NicolasHug, sluks, haichuan-fb, teng-li, ...

Details for Dev Infra team Raised by workflow job

@Xia-Weiwen
Copy link
Collaborator Author

Hi @jerryzh168. Could you review? Thanks.

@Xia-Weiwen
Copy link
Collaborator Author

Hi @jerryzh168. Could you please take a look of this PR? It involves onednn backend only. Thanks!

@Xia-Weiwen Xia-Weiwen force-pushed the onednn_grouped_conv_reorder branch from 6c35c60 to f2ab2a5 Compare February 1, 2023 00:59
@Xia-Weiwen
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@Xia-Weiwen Xia-Weiwen deleted the onednn_grouped_conv_reorder branch November 13, 2024 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request intel This tag is for PR from Intel Merged module: cpu CPU specific problem (e.g., perf, algorithm) open source release notes: quantization release notes category

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants