Skip to content
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

fix bug of batch_norm_grad kernel with fp16 #42460

Merged

Conversation

XiaoguangHu01
Copy link
Contributor

PR types

Bug fixes

PR changes

OPs

Describe

修复batch_norm_grad算子在fp16数据类型时输出数据类型注册的bug,这段注册代码会导致越界
在gcc 9.3+ cuda 11.4下环境下编译,会报错如下:
op_function_generator: /Paddle/paddle/utils/small_vector.h:334: Assertion idx < size() failed

@paddle-bot-old
Copy link

paddle-bot-old bot commented May 4, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

phlrain
phlrain previously approved these changes May 4, 2022
@XiaoguangHu01 XiaoguangHu01 merged commit 6570814 into PaddlePaddle:develop May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants