Skip to content

Commit 2a64365

Browse files
peterbell10pytorchmergebot
authored andcommitted
Fix rendering of std/var docs (pytorch#91730)
Due to the indentation, "versionchanged" is being rendered as if it was an argument. Pull Request resolved: pytorch#91730 Approved by: https://github.com/albanD, https://github.com/lezcano
1 parent f571ae4 commit 2a64365

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

torch/_torch_docs.py

+23-16
Original file line numberDiff line numberDiff line change
@@ -10701,11 +10701,12 @@ def merge_dicts(*dicts):
1070110701
1070210702
Keyword args:
1070310703
correction (int): difference between the sample size and sample degrees of freedom.
10704-
Defaults to `Bessel's correction`_, ``correction=1``.
10705-
.. versionchanged:: 1.14
10706-
Previously this argument was called ``unbiased`` and was a boolean with
10707-
``True`` corresponding to ``correction=1`` and ``False`` being ``correction=0``.
10704+
Defaults to `Bessel's correction`_, ``correction=1``.
1070810705
10706+
.. versionchanged:: 2.0
10707+
Previously this argument was called ``unbiased`` and was a boolean
10708+
with ``True`` corresponding to ``correction=1`` and ``False`` being
10709+
``correction=0``.
1070910710
{keepdim}
1071010711
{out}
1071110712
@@ -10757,10 +10758,12 @@ def merge_dicts(*dicts):
1075710758
1075810759
Keyword args:
1075910760
correction (int): difference between the sample size and sample degrees of freedom.
10760-
Defaults to `Bessel's correction`_, ``correction=1``.
10761-
.. versionchanged:: 1.14
10762-
Previously this argument was called ``unbiased`` and was a boolean with
10763-
``True`` corresponding to ``correction=1`` and ``False`` being ``correction=0``.
10761+
Defaults to `Bessel's correction`_, ``correction=1``.
10762+
10763+
.. versionchanged:: 2.0
10764+
Previously this argument was called ``unbiased`` and was a boolean
10765+
with ``True`` corresponding to ``correction=1`` and ``False`` being
10766+
``correction=0``.
1076410767
{keepdim}
1076510768
{out}
1076610769
@@ -12175,10 +12178,12 @@ def merge_dicts(*dicts):
1217512178
1217612179
Keyword args:
1217712180
correction (int): difference between the sample size and sample degrees of freedom.
12178-
Defaults to `Bessel's correction`_, ``correction=1``.
12179-
.. versionchanged:: 1.14
12180-
Previously this argument was called ``unbiased`` and was a boolean with
12181-
``True`` corresponding to ``correction=1`` and ``False`` being ``correction=0``.
12181+
Defaults to `Bessel's correction`_, ``correction=1``.
12182+
12183+
.. versionchanged:: 2.0
12184+
Previously this argument was called ``unbiased`` and was a boolean
12185+
with ``True`` corresponding to ``correction=1`` and ``False`` being
12186+
``correction=0``.
1218212187
{keepdim}
1218312188
{out}
1218412189
@@ -12229,10 +12234,12 @@ def merge_dicts(*dicts):
1222912234
1223012235
Keyword args:
1223112236
correction (int): difference between the sample size and sample degrees of freedom.
12232-
Defaults to `Bessel's correction`_, ``correction=1``.
12233-
.. versionchanged:: 1.14
12234-
Previously this argument was called ``unbiased`` and was a boolean with
12235-
``True`` corresponding to ``correction=1`` and ``False`` being ``correction=0``.
12237+
Defaults to `Bessel's correction`_, ``correction=1``.
12238+
12239+
.. versionchanged:: 2.0
12240+
Previously this argument was called ``unbiased`` and was a boolean
12241+
with ``True`` corresponding to ``correction=1`` and ``False`` being
12242+
``correction=0``.
1223612243
{keepdim}
1223712244
{out}
1223812245

0 commit comments

Comments
 (0)