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

[PHI]Standardise some C++ API (Part2) #47510

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

YuanRisheng
Copy link
Contributor

@YuanRisheng YuanRisheng commented Oct 31, 2022

PR types

Others

PR changes

Others

Describe

标准化如下C++ API接口,使其与Python API对齐:
hierarchical_sigmoid
reduce_prod
tril_triu
uniform_random
where_index
yolov3_loss
uniform_random_inplace
后续还会继续对接口标准化,此PR是系列工作的第二个PR

@paddle-bot
Copy link

paddle-bot bot commented Oct 31, 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.

@@ -1163,7 +1163,7 @@ def triu(x, diagonal=0, name=None):

"""
if in_dygraph_mode():
return _C_ops.tril_triu(x, diagonal, False)
return _C_ops.tril(x, diagonal, False)
Copy link
Contributor

@zyfncg zyfncg Nov 1, 2022

Choose a reason for hiding this comment

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

tril一个算子提供给tril和triu两个接口用,在命名上看有没有办法再规范一下

Copy link
Contributor Author

Choose a reason for hiding this comment

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

后续对齐api的pr会处理一下这个问题

Copy link
Contributor Author

@YuanRisheng YuanRisheng Nov 1, 2022

Choose a reason for hiding this comment

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

后续pr会处理

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

注意每一个签名变动都需要在CustomDevice里同步修改

@YuanRisheng
Copy link
Contributor Author

注意每一个签名变动都需要在CustomDevice里同步修改

已提交修改pr,后续每个对齐api的PR都会同步提交customDevice修改

Copy link
Contributor

@ZzSean ZzSean left a comment

Choose a reason for hiding this comment

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

LGTM for CI-OP-Benchmark

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@YuanRisheng YuanRisheng merged commit 399047d into PaddlePaddle:develop Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants