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

[XPU]correct the unittest for bf16 op #60415

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Conversation

runzhech
Copy link
Contributor

@runzhech runzhech commented Dec 27, 2023

PR types

Bug fixes

PR changes

Others

Description

之前的很多xpu op的单测中生成bf16输入数据的方法错误,导致实际上输入数据全为0,虽然能过单测但是达不到单测的目的。
这次pr修改了部分elementwise_mul、elementwise_sub、elementwise_div以及reduce_sum的单测逻辑,使其能够正确生成bf16类型的输入数据。

Copy link

paddle-bot bot commented Dec 27, 2023

你的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.

@paddle-bot paddle-bot bot added the contributor External developers label Dec 27, 2023
Copy link
Contributor

@zhangyk0314 zhangyk0314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@QingshuChen QingshuChen merged commit 5828223 into PaddlePaddle:develop Dec 29, 2023
29 checks passed
@runzhech runzhech deleted the new_b branch December 29, 2023 06:50
Wanglongzhi2001 pushed a commit to Wanglongzhi2001/Paddle that referenced this pull request Jan 7, 2024
@houj04 houj04 added the XPU label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers XPU
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants