-
Notifications
You must be signed in to change notification settings - Fork 269
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
Fix inconsistency between poisson_nll_loss rfc and implementation #484
Conversation
@@ -46,20 +46,20 @@ PyTorch:PyTorch 支持 torch.nn.poissonNLLLoss 和 torch.nn.functional.Poisson | |||
```python | |||
def poisson_nll_loss( | |||
input: Tensor, | |||
target: Tensor, | |||
label: 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.
这里是torch的定义吧,不用改成label
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.
在新提交里已经修改
log_input: bool = True, | ||
full: bool = False, | ||
size_average: Optional[bool] = None, | ||
epsilon: float = 1e-8, | ||
reduce: Optional[bool] = None, | ||
reduction: str = "mean", | ||
) -> Tensor: | ||
if has_torch_function_variadic(input, target): | ||
if has_torch_function_variadic(input, label): |
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.
同上,其他torch的也一样
991b27f
to
923f553
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
Follow the suggesstions of our kind reviewer, we update our rfc doc. Refer to this pr