-
Notifications
You must be signed in to change notification settings - Fork 236
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
MIOpenBatchNormBwdPerAct.cl kernel bug #104
Comments
@joye @atamazov Based on this information the calculation at Considering we don't have error report in ctest or driver, I think the verification in ctest and driver also need to be changed. Can you setup a priority level? |
I think instead of doing a patch here, maybe put it in the next release. What do you think? @atamazov |
Yes, let's fix during normal development process. Anyone who needs the fix ASAP can ask us explicitly (right here) for the patch. |
I’ll fix it for the next release. |
Fixed in MIOpen 2.0.0 |
in https://github.com/ROCmSoftwarePlatform/MIOpen/blob/master/src/kernels/MIOpenBatchNormBwdPerAct.cl#L174
the tmp2's calculation is wrong, which should be
dyelem = (_FLOAT_PREC)(dy_in[index]);
tmp2 = mad((_FLOAT_PREC)N, dyelem * pvt_scale, -tmp1);
please check the formula of this derivative.
After this change, the result can match with cuDNN result for the same input.
The text was updated successfully, but these errors were encountered: