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:
Peter Bell
2022-12-04 21:20:48 +00:00
committed by PyTorch MergeBot
parent b0bd5c4508
commit e6a7278753
10 changed files with 261 additions and 123 deletions

View File

@ -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`
""",