-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Kernel] Fix GroupNormGradKernel
when d_x
is nullptr
#72358
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
[Kernel] Fix GroupNormGradKernel
when d_x
is nullptr
#72358
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
655579d
to
ecdc6e6
Compare
ecdc6e6
to
62e774d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #72358 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 40
Branches ? 0
===========================================
Hits ? 40
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…e#72358) * fix GroupNormGradKernel when d_x is nullptr * update UT * fix relative import * fix coverage * fix rtol and atol * fix for coverage * update UT * add nhwc for coverage
PR Category
Operator Mechanism
PR Types
Bug fixes
Description
Pcard-75624
当x.stop_gradient=True时,d_x为空,CPU的GroupNormGradKernel没有处理这种情况导致报错,因此将逻辑对齐 CUDA GroupNormGradKernel,当
d_x
为空时去掉对应的内存申请和相关计算逻辑