-
Notifications
You must be signed in to change notification settings - Fork 26.3k
enable mkldnn conv2d backward to support mkldnn tensor input #36121
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
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 81fc4cc (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 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 or post in the (internal) Dr. CI Users group. This comment has been revised 87 times. |
|
@VitalyFedyunin , those PRs #20567 #20570 #20571 #20572 are tool old , I will re-pull them. thanks! |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
@VitalyFedyunin , could you help review this code? |
[ghstack-poisoned]
[ghstack-poisoned]
|
Are we fine with BC-incompatible changes in What is the purpose of ideep update? |
|
The purpose of ideep update:
Why I change mkldnn_convolution_backward_weights? for bf16 backward path, the weight can be a fp32(just convert input to float32 MKLDNN tensor) or bf16 tensor(convert input to a bf16 MKLDNN tensor and call model.to_mkldnn(torch.bfloat16)), so I need get the data_type from this weight parameters. |
[ghstack-poisoned]
[ghstack-poisoned]
|
Test errors seems to be mkldnn related |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
Please whitelist changed operator in
|
test/test_mkldnn.py
Outdated
| mkldnn_conv2d = mkldnn_utils.to_mkldnn(copy.deepcopy(conv2d)) | ||
| for train in [True, False]: | ||
| for bias in [True, False]: | ||
| conv2d = torch.nn.Conv2d(in_channels=C, |
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 looks like indent problem for me.
VitalyFedyunin
left a comment
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.
Overall looks good, need some tests alterations.
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
| ('aten::__or__', datetime.date(2020, 6, 30)), | ||
| ('aten::__xor__', datetime.date(2020, 6, 30)), | ||
| ('aten::split', datetime.date(2020, 6, 30)), | ||
| ('aten::mkldnn_convolution_backward_weights', datetime.date(2020, 6, 30)), |
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.
Sorry you need to update this date before landing.
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.
changed.
Differential Revision: [D22440969](https://our.internmc.facebook.com/intern/diff/D22440969) [ghstack-poisoned]
Differential Revision: [D22440969](https://our.internmc.facebook.com/intern/diff/D22440969) [ghstack-poisoned]
|
Land fails with: |
|
@VitalyFedyunin , this error seems not find the corresponding function, I can reproduce this error by checkout old ideep commit(ca7b718), could you help check the ideep commit id which used by the failed case? PyTorch master use 938cc68 now. Thanks! |
ghstack-source-id: e8ab99b Pull Request resolved: pytorch#36121
|
@VitalyFedyunin , please let us know if you need any help for the errors related to the ideep. Thanks. |
|
Hi @XiaobingSuper! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but we do not have a signature on file. In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Hi! I'm ready to land it. Can you please rebase to make sure we avoid merge conflicts. |
@VitalyFedyunin Thank you. We created a new PR #48994 to ease the rebase. I copied you there. This old one is supposed to be closed. Thanks. |
|
Are you planning to port the remaining 4 PRs? |
I think so. @XiaobingSuper |
Stack from ghstack:
Differential Revision: D22440969