-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[v1.7.x] backport Invoke mkldnn and cudnn BatchNorm when axis != 1 to v1.7.x #18676
Conversation
…e#18504) * fix batch norm when fix_gamma is True * support gradient accumulation for batch norm * mkldnn batchnorm support grad add * unittest for bn * fix bn arg * fix lint * fix mkldnn * fix mkldnn bn * fix grad when fixing gamma * fix naive gpu bn * fix lint * invoke mkldnn and cudnn batchnorm when axis != 1 * backport 18500 * change condition * fix * fix * add mkldnn_off for bn * remove mkldnn_off * recover save_000800.json * cast
Hey @stu1130 , Thanks for submitting the PR
CI supported jobs: [centos-gpu, clang, website, unix-cpu, windows-cpu, centos-cpu, edge, miscellaneous, sanity, windows-gpu, unix-gpu] Note: |
@mxnet-bot run ci [unix-cpu] |
Jenkins CI successfully triggered : [unix-cpu] |
@wkcn could you take a look at the nan test failure? |
HI @stu1130 , the flaky test is
In the latest version of MXNet, the test |
@wkcn thanks for the explanation. Let me retrigger the ci. |
Jenkins CI successfully triggered : [unix-cpu] |
1 similar comment
Jenkins CI successfully triggered : [unix-cpu] |
Could you check again? I enable |
This comment has been minimized.
This comment has been minimized.
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. Thank you!
Thanks @wkcn I will ping my colleague to merge it |
@bgawrych could you take a review for this change, especially for MKLDNN BN |
@pengzhao-intel LGTM, all test cases are executed by MKLDNN primitive |
@ciyongch if we need to rework on 1.7 source code for addressing license issue, could we include this commit? If it would block 1.7 release or affect the process, I am ok to make it release on 1.7.1 or 1.8 |
…o v1.7.x (apache#18676) * [Improvement] Invoke mkldnn and cudnn BatchNorm when axis != 1 (apache#18504) * fix batch norm when fix_gamma is True * support gradient accumulation for batch norm * mkldnn batchnorm support grad add * unittest for bn * fix bn arg * fix lint * fix mkldnn * fix mkldnn bn * fix grad when fixing gamma * fix naive gpu bn * fix lint * invoke mkldnn and cudnn batchnorm when axis != 1 * backport 18500 * change condition * fix * fix * add mkldnn_off for bn * remove mkldnn_off * recover save_000800.json * cast * remove and fix flaky test Co-authored-by: JackieWu <wkcn@live.cn>
Hi @stu1130 , currently, 1.7.0rc1 vote on dev@ was completed, and I didn't see any hard requirement to rework/updated the 1.7.0rc1 code base, the release process was hold on (vote on general@) to address some legal issues like (IP clearance of mshadow and some branding/trademark issue in external/3rd party usage). So I would suggest to include this in the next release, what do you think? |
@ciyongch alright, I think we can do it on next release. |
…o v1.7.x (apache#18676) * [Improvement] Invoke mkldnn and cudnn BatchNorm when axis != 1 (apache#18504) * fix batch norm when fix_gamma is True * support gradient accumulation for batch norm * mkldnn batchnorm support grad add * unittest for bn * fix bn arg * fix lint * fix mkldnn * fix mkldnn bn * fix grad when fixing gamma * fix naive gpu bn * fix lint * invoke mkldnn and cudnn batchnorm when axis != 1 * backport 18500 * change condition * fix * fix * add mkldnn_off for bn * remove mkldnn_off * recover save_000800.json * cast * remove and fix flaky test Co-authored-by: JackieWu <wkcn@live.cn>
…o v1.7.x (apache#18676) * [Improvement] Invoke mkldnn and cudnn BatchNorm when axis != 1 (apache#18504) * fix batch norm when fix_gamma is True * support gradient accumulation for batch norm * mkldnn batchnorm support grad add * unittest for bn * fix bn arg * fix lint * fix mkldnn * fix mkldnn bn * fix grad when fixing gamma * fix naive gpu bn * fix lint * invoke mkldnn and cudnn batchnorm when axis != 1 * backport 18500 * change condition * fix * fix * add mkldnn_off for bn * remove mkldnn_off * recover save_000800.json * cast * remove and fix flaky test Co-authored-by: JackieWu <wkcn@live.cn>
…o v1.7.x (#18676) (#18890) * [Improvement] Invoke mkldnn and cudnn BatchNorm when axis != 1 (#18504) * fix batch norm when fix_gamma is True * support gradient accumulation for batch norm * mkldnn batchnorm support grad add * unittest for bn * fix bn arg * fix lint * fix mkldnn * fix mkldnn bn * fix grad when fixing gamma * fix naive gpu bn * fix lint * invoke mkldnn and cudnn batchnorm when axis != 1 * backport 18500 * change condition * fix * fix * add mkldnn_off for bn * remove mkldnn_off * recover save_000800.json * cast * remove and fix flaky test Co-authored-by: JackieWu <wkcn@live.cn> Co-authored-by: JackieWu <wkcn@live.cn>
Backport [Improvement] Invoke mkldnn and cudnn BatchNorm when axis != 1 v1.7x
The PR could be part of 1.7.1 release.