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

映射文档 No. 165-184 #6044

Merged
merged 2 commits into from
Jul 24, 2023
Merged

映射文档 No. 165-184 #6044

merged 2 commits into from
Jul 24, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 22, 2023

PaddlePaddle/PaConvert#112

165 torch.distributions.exp_family.ExponentialFamily 已有文档修改
166 torch.distributions.bernoulli.Bernoulli
167 torch.distributions.binomial.Binomial 不支持API
168 torch.distributions.categorical.Categorical 已有文档
169 torch.distributions.cauchy.Cauchy
170 torch.distributions.continuous_bernoulli.ContinuousBernoulli 不支持API
171 torch.distributions.dirichlet.Dirichlet 已有文档修改
172 torch.distributions.exponential.Exponential 不支持API
173 torch.distributions.geometric.Geometric
174 torch.distributions.gumbel.Gumbel
175 torch.distributions.independent.Independent
176 torch.distributions.laplace.Laplace
177 torch.distributions.log_normal.LogNormal
178 torch.distributions.multinomial.Multinomial 已有文档修改
179 torch.distributions.normal.Normal 已有文档修改
180 torch.distributions.one_hot_categorical.OneHotCategorical 不支持API
181 torch.distributions.transformed_distribution.TransformedDistribution 已有文档
182 torch.distributions.uniform.Uniform 已有文档修改
183 torch.distributions.transforms.Transform 已有文档
184 torch.distributions.transforms.ComposeTransform 已有文档

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ----------------------------------------------------------------------- |
| probs | probs | 伯努利分布的概率输入。 |
| logits | logits | 采样 1 的 log-odds。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个参数paddle没有吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

@@ -737,6 +737,12 @@
| ---- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| 1 | [torch.distributions.kl.kl_divergence](https://pytorch.org/docs/stable/distributions.html?highlight=torch+distributions+kl+kl_divergence#torch.distributions.kl.kl_divergence) | [paddle.distribution.kl_divergence](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distribution/kl_divergence_cn.html) | 功能一致,参数一致, [差异对比](https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.kl_divergence.md) |
| 2 | [torch.distributions.kl.register_kl](https://pytorch.org/docs/stable/distributions.html?highlight=register_kl#torch.distributions.kl.register_kl) | [paddle.distribution.register_kl](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/distribution/register_kl_cn.html) | 功能一致,仅参数名不一致, [差异对比](https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/distributions/torch.distributions.kl.register_kl.md) |
| 3 | [torch.distributions.binomial.Binomial](https://pytorch.org/docs/stable/distributions.html#torch.distributions.binomial.Binomial) | | 功能缺失 |
| 4 | [torch.distributions.continuous_bernoulli.ContinuousBernoulli](https://pytorch.org/docs/stable/distributions.html#torch.distributions.continuous_bernoulli.ContinuousBernoulli) | | 功能缺失 |
| 5 | [torch.distributions.exponential.Exponential](https://pytorch.org/docs/stable/distributions.html#torch.distributions.exponential.Exponential) | | 功能缺失 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

要以最新的paddle为准,这两个都已经有:
infoflow 2023-07-24 12-11-04

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改添加Gumbel, Geometric

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit d29bdfa into PaddlePaddle:develop Jul 24, 2023
1 check passed
@co63oc co63oc deleted the doc166 branch August 4, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants