-
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
【Hackathon 4th No.11】 为 paddle 添加 Geometric Distribution API #51224
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
…into api_geometric
…into api_geometric
@cxxly 已经修改,麻烦再检查以下,感谢! |
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
@dasenCoding 中文API文档需要补充下 |
# [1.41421354]) | ||
""" | ||
|
||
def __init__(self, probs=None): |
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.
probs
should not be a parameter with default value None
?
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.
probs
should not be a parameter with default valueNone
?
Yes, here really should not set a default value for probs, i have fixed.
thanks for your review!
in rfc, chapter 3: pytorch args should be |
根据您的建议,已经在此PR中进行了修正: 谢谢! |
Geometric 的中文文档已经完成! doc PR: PaddlePaddle/docs#5816 谢谢! |
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.
#52999 (comment)
可以参考下这个说明,单测目录发生变化了要进行迁移
收到!谢谢! |
@cxxly 剩下两个CI没有通过,其他的都已经通过了,请您审查一下,感谢! |
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
Args: | ||
probs (Real|Tensor): Probability parameter. | ||
The value of probs must be positive. When the parameter is a tensor, probs is probability of success for each trial. | ||
|
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.
加一下返回(returns)的描述
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.
加一下返回(returns)的描述
已添加!
|
||
.. code-block:: python | ||
|
||
import paddle |
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.
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.
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
New features
PR changes
APIs
Description
为 Paddle 添加几何分布 API,该PR包括了 API 实现的代码,以及动态测试和静态测试类。
原设计文档: PaddlePaddle/community#376
更正后的设计文档: PaddlePaddle/community#519
中文API文档: PaddlePaddle/docs#5816