-
Notifications
You must be signed in to change notification settings - Fork 764
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
映射文档 No.53 torch.nn.PoissonNLLLoss
#6055
Conversation
torch.nn.PoissonNLLLoss
| 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`。 | |
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.
@RedContritio 你好,上面有两个comment,请重新提PR修改一下
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------------------ | ------------------ | ---------------------------------------------------------------------------------- | | ||
| log_input | log_input | 输入是否为对数函数映射后结果。 | |
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怎么设置
torch.nn.PoissonNLLLoss
含有历史遗留参数,映射时需要按照逻辑进行参数的覆盖。