-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tril一个算子提供给tril和triu两个接口用,在命名上看有没有办法再规范一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后续对齐api的pr会处理一下这个问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后续pr会处理
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意每一个签名变动都需要在CustomDevice里同步修改
已提交修改pr,后续每个对齐api的PR都会同步提交customDevice修改 |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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