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.53 torch.nn.PoissonNLLLoss #6055

Merged

Conversation

RedContritio
Copy link
Contributor

@RedContritio RedContritio commented Jul 25, 2023

torch.nn.PoissonNLLLoss 含有历史遗留参数,映射时需要按照逻辑进行参数的覆盖。

@RedContritio RedContritio changed the title 映射文档 No.53 api_difference torch.nn.PoissonNLLLoss 映射文档 No.53 torch.nn.PoissonNLLLoss Jul 25, 2023
@RedContritio RedContritio changed the title 映射文档 No.53 torch.nn.PoissonNLLLoss 映射文档 No.53 torch.nn.PoissonNLLLoss Jul 25, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 26, 2023
| size_average | - | 已废弃(可用 `reduction` 代替)。表示是否采用 batch 中各样本 loss 平均值作为最终的 loss。如果置 False,则采用加和作为 loss。默认为 True,paddle 需要转写。 |
| eps | eps | 在 `log_input` 为 True 时使用的常数小量。默认值为 1e-8。 |
| reduce | - | 已废弃(可用 `reduction` 代替)。表示是否采用输出单个值作为 loss。如果置 False,则每个元素输出一个 loss 并忽略 `size_average`。默认为 True,paddle 需要转写。 |
| reduction | reduction | 指定应用于输出结果的计算方式,可选值有 `none`、`mean` 和 `sum`。默认为 `mean`,计算 mini-batch loss 均值。设置为 `sum` 时,计算 mini-batch loss 的总和。设置为 `none` 时,则返回 loss Tensor。默认值下为 `mean`。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

加一句 两者完全一致

@zhwesky2010 zhwesky2010 merged commit 4af9d77 into PaddlePaddle:develop Jul 26, 2023
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.

@RedContritio 你好,上面有两个comment,请重新提PR修改一下


| PyTorch | PaddlePaddle | 备注 |
| ------------------ | ------------------ | ---------------------------------------------------------------------------------- |
| log_input | log_input | 输入是否为对数函数映射后结果。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个默认值不同吗,默认值不同,需要写明白 paddle怎么设置

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