ptrendx opened a new pull request #17368: Faster GPU frozen BatchNorm URL: https://github.com/apache/incubator-mxnet/pull/17368 ## Description ## This PR introduces an improved implementation of GPU BatchNorm when `use_global_stats` is `True` Performance results (using V100 PCIe card, shape of data = `(208, 64, 112, 112)`) dtype = `float32` | FWD/BWD | axis | Old implementation time (ms) | New implementation time (ms) | speedup | | - | - | - | - | - | | FWD | 0 | 3.67 | 2.31 | 1.59x | | BWD | 0 | 6.60 | 2.28 | 2.9x | | FWD | 1 | 4.92 | 2.21 | 2.23x | | BWD | 1 | 8.61 | 2.23 | 3.86x | | FWD | 2 | 11.52 | 2.21 | 5.21x | | BWD | 2 | 21.36 | 2.74 | 7.8x | | FWD | 3 | 1010.55 | 2.24 | 451x | | BWD | 3 | 1901.58 | 2.77 | 686.5x | dtype = `float16` | FWD/BWD | axis | Old implementation time (ms) | New implementation time (ms) | speedup | | - | - | - | - | - | | FWD | 0 | 3.1 | 0.92 | 3.37x | | BWD | 0 | 6.56 | 1.04 | 6.31x | | FWD | 1 | 4.34 | 0.92 | 4.72x | | BWD | 1 | 9.21 | 1.34 | 6.87x | | FWD | 2 | 10.23 | 0.92 | 11.12x | | BWD | 2 | 22.61 | 1.60 | 14.13x | | FWD | 3 | 948.1 | 1.01 | 939x | | BWD | 3 | 2061.9 | 1.32 | 1562x | @Kh4L @Jerryzcn FYI ## Checklist ## ### Essentials ### Please feel free to remove inapplicable items for your PR. - [x] Changes are complete (i.e. I finished coding on this PR) - [x] All changes have test coverage: - [x] To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
