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

[Prim][PIR] support huber_loss op forward in prim pir #64425

Merged
merged 2 commits into from
May 21, 2024

Conversation

Eddie-Wang1120
Copy link
Contributor

PR Category

Others

PR Types

Others

Description

[Prim][PIR] support huber_loss op forward in prim pir

huber_loss is a sub op for smooth_l1_loss,so it's also support smooth_l1_loss prim pir forward

@Eddie-Wang1120 Eddie-Wang1120 marked this pull request as ready for review May 18, 2024 07:26
Copy link

paddle-bot bot commented May 18, 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.

@paddle-bot paddle-bot bot added the contributor External developers label May 18, 2024
auto ans = where<T>(abs_val <= delta_full,
0.5 * val * val,
delta_full * (abs_val - 0.5 * delta_full));
return std::make_tuple(cast<T>(ans, input.dtype()),
Copy link
Contributor

Choose a reason for hiding this comment

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

适配一下动态shape,以及这里确认一下,cast是否必须?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

收到

@cyber-pioneer cyber-pioneer merged commit 27127d6 into PaddlePaddle:develop May 21, 2024
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants