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

add adadelta op for xpu, test=kunlun #47661

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

zhangyk0314
Copy link
Contributor

@zhangyk0314 zhangyk0314 commented Nov 4, 2022

PR types

New features

PR changes

OPs

Describe

1、add adadelta op for xpu
2、xpu2_op_list.h增加clip_by_norm声明

@paddle-bot
Copy link

paddle-bot bot commented Nov 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.

@paddle-bot-old paddle-bot-old bot added the contributor External developers label Nov 4, 2022
ZibinGuo
ZibinGuo previously approved these changes Nov 7, 2022
@@ -105,6 +106,8 @@ XPUOpMap& get_kl2_ops() {
XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace()),
pOpKernelType(vartype::FP16, XPUPlace())})},
{"clip", XPUKernelSet({pOpKernelType(vartype::FP32, XPUPlace())})},
{"clip_by_norm",
Copy link
Contributor

Choose a reason for hiding this comment

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

这个的单测呢?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

单测之前就有了,不过没有按照目前的格式进行修改。那我修改下重新提交吧。

def test_check_output(self):
self.check_output()

class TestAdadeltaOp2(OpTest):
Copy link
Contributor

Choose a reason for hiding this comment

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

这里是XPUOpTest吧?

Copy link
Contributor

Choose a reason for hiding this comment

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

攒着下次一起改,节省机器资源

Copy link
Contributor Author

Choose a reason for hiding this comment

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

目前单测可以跑过,下次pr的时候再修改一下。

@houj04 houj04 merged commit 047971f into PaddlePaddle:develop Nov 8, 2022
@paddle-bot
Copy link

paddle-bot bot commented Nov 8, 2022

你的PR已合入Paddle库,请关注后续测试结果。
Your PR has been merged into the repository. An official integration test will be conducted later. Stay tuned.

@zhangyk0314 zhangyk0314 deleted the adadelta branch January 11, 2023 07:16
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.

4 participants