-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix distribution API with 0-D input parameters 易用性提升 -part2 #69141
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/distribution/gumbel.py
Outdated
@@ -250,7 +250,7 @@ def entropy(self) -> Tensor: | |||
""" | |||
return paddle.log(self.scale) + 1 + np.euler_gamma | |||
|
|||
def sample(self, shape: Sequence[int]) -> Tensor: | |||
def sample(self, shape: Sequence[int] = ()) -> Tensor: |
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.
paddle中更习惯用list形式来表示shape,看能不能全部换成这种写法:[]
@NKNaN 这个按另一个PR的标准,也修改一下吧。另外CI还有问题 |
Sorry to inform you that f1ac0c4's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
f1ac0c4
to
153096c
Compare
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 Category
User Experience
PR Types
Bug fixes
Description
paddle.distribution.Poisson
修复 0-D 参数输入;[]
。