-
Notifications
You must be signed in to change notification settings - Fork 23k
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
add channels last for GroupNorm #49821
Conversation
[ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 7759c07 (more details on the Dr. CI page):
🕵️ 2 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages: pytorch_linux_xenial_py3_clang7_asan_test2 (1/2)Step: "Run tests" (full log | diagnosis details | 🔁 rerun)
|
ghstack-source-id: 7061ac75798ee55fa6ad82e35a84570e81566495 Pull Request resolved: #49821
From performance point of view, The implementation of this patch tries to do reduce on NHWC=>NC first and then NC=> NG, in this way we can always use C for vectorization. Yet the performance of channels last is still slightly worse than contiguous format: paper here replaces BN with GN in RN50, so I am benchmarking RN50 BN sizes here:
|
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.
LGTM, I will try to add the CUDA impl later to see what performance we can reach on CUDA for NHWC format.
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
@VitalyFedyunin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
@VitalyFedyunin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
@VitalyFedyunin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Please rebase, we had to revert thcc_conv2 PR, so I need to know if we can continue this stack in parallel to fixing that one. |
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
@VitalyFedyunin rebased, please check! |
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
@VitalyFedyunin rebased, please check! |
Differential Revision: [D26007053](https://our.internmc.facebook.com/intern/diff/D26007053) [ghstack-poisoned]
rebased! |
@VitalyFedyunin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@VitalyFedyunin merged this pull request in 5b7cdc5. |
Stack from ghstack:
Differential Revision: D26007053