mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Give std/var correction overloads proper defaults (#56398)
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) Pull Request resolved: https://github.com/pytorch/pytorch/pull/56398 Approved by: https://github.com/mruberry
This commit is contained in:
committed by
PyTorch MergeBot
parent
b0bd5c4508
commit
e6a7278753
@ -4785,12 +4785,7 @@ In-place version of :meth:`~Tensor.squeeze`
|
||||
add_docstr_all(
|
||||
"std",
|
||||
r"""
|
||||
std(dim, unbiased=True, keepdim=False) -> Tensor
|
||||
|
||||
See :func:`torch.std`
|
||||
|
||||
.. function:: std(unbiased=True) -> Tensor
|
||||
:noindex:
|
||||
std(dim=None, *, correction=1, keepdim=False) -> Tensor
|
||||
|
||||
See :func:`torch.std`
|
||||
""",
|
||||
@ -5738,12 +5733,7 @@ In-place version of :meth:`~Tensor.unsqueeze`
|
||||
add_docstr_all(
|
||||
"var",
|
||||
r"""
|
||||
var(dim, unbiased=True, keepdim=False) -> Tensor
|
||||
|
||||
See :func:`torch.var`
|
||||
|
||||
.. function:: var(unbiased=True) -> Tensor
|
||||
:noindex:
|
||||
var(dim=None, *, correction=1, keepdim=False) -> Tensor
|
||||
|
||||
See :func:`torch.var`
|
||||
""",
|
||||
|
Reference in New Issue
Block a user