Skip to content

[XPU] take_along_axis supports BF16 #67780

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

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

will-jl944
Copy link
Contributor

PR Category

Custom Device

PR Types

Improvements

Description

[XPU] Support bf16 take_along_axis

Copy link

paddle-bot bot commented Aug 28, 2024

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

@will-jl944 will-jl944 changed the title [XPU] Support bf16 take_along_axis [XPU] take_along_axis supports BF16 Aug 28, 2024
std::is_same<T, phi::dtype::bfloat16>::value ||
std::is_same<T, phi::dtype::float16>::value,
typename XPUTypeTrait<phi::dtype::float16>::Type,
typename XPUTypeTrait<T>::Type>::type;
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO:等支持bf16版本的xdnn/xhpc出来了以后,去掉这里的特殊用法

Copy link
Contributor

@runzhech runzhech left a comment

Choose a reason for hiding this comment

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

LGTM,后续我们来更新一下xhpc

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

@houj04 houj04 merged commit 1da5beb into PaddlePaddle:develop Aug 29, 2024
29 checks passed
@houj04 houj04 added the XPU label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants