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

【Hackathon 5th No.19】Update rfcs of ContinuousBernoulli and MultivariateNormal API #783

Merged
merged 6 commits into from
Dec 18, 2023

Conversation

NKNaN
Copy link
Contributor

@NKNaN NKNaN commented Dec 13, 2023

Update rfcs of ContinuousBernoulli and MultivariateNormal API

Copy link

paddle-bot bot commented Dec 13, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.

@@ -653,9 +653,10 @@ class ContinuousBernoulli(distribution.AutoCompositeTensorDistribution):

## 命名与参数设计
```python
paddle.distribution.continuous_bernoulli(probs)
paddle.distribution.continuous_bernoulli(probability, eps=0.02)
Copy link

@cxxly cxxly Dec 14, 2023

Choose a reason for hiding this comment

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

和PyTorch签名保持一致(logits不用支持), .ContinuousBernoulli(probs=None, lims=(0.499, 0.501),)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改


# 五、设计思路与实现方案

## 命名与参数设计
```python
paddle.distribution.multivariate_normal(loc, sacle)
paddle.distribution.multivariate_normal(loc, covariance_matrix=None, precision_matrix=None, scale_tril=None)
Copy link

Choose a reason for hiding this comment

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

和PyTorch签名保持一致,class用Pascal写法,MultivariateNormal(loc, covariance_matrix=None, precision_matrix=None, scale_tril=None)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

…20230927_api_design_for_ContinuousBernoulli.md
…0230927_api_design_for_MultivariateNormal.md
@@ -653,9 +653,10 @@ class ContinuousBernoulli(distribution.AutoCompositeTensorDistribution):

## 命名与参数设计
```python
paddle.distribution.continuous_bernoulli(probs)
paddle.distribution.ContinuousBernoulli(probs=None, lims=(0.499, 0.501))
Copy link

Choose a reason for hiding this comment

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

probs=None -> probs, probs是必选参数

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

Copy link

@cxxly cxxly left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit f736816 into PaddlePaddle:master Dec 18, 2023
@NKNaN NKNaN deleted the hack19-update branch August 27, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants