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 squared_l2_norm op forward in prim pir #64498

Merged
merged 2 commits into from
May 23, 2024

Conversation

Eddie-Wang1120
Copy link
Contributor

PR Category

Others

PR Types

Others

Description

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

Copy link

paddle-bot bot commented May 21, 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 21, 2024
reduce_x = reshape<T>(x, {reduce_num});
}
auto res =
sum<T>(elementwise_pow<T>(reduce_x, full<T>(empty_shape, 2, x.dtype())),
Copy link
Contributor

Choose a reason for hiding this comment

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

pow(x, 2) -> x*x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@cyber-pioneer cyber-pioneer merged commit b8fb60a into PaddlePaddle:develop May 23, 2024
31 checks passed
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 23, 2024
chen2016013 pushed a commit to chen2016013/Paddle that referenced this pull request May 26, 2024
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