8000 Update tensor docs · pytorch/pytorch@c948f1d · GitHub
[go: up one dir, main page]

Skip to content

Commit c948f1d

Browse files
committed
Update tensor docs
1 parent 84f28c4 commit c948f1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torch/_tensor_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ def add_docstr_all(method, docstr):
11601160

11611161
add_docstr_all('diff',
11621162
r"""
1163-
diff(n=1, dim=-1) -> Tensor
1163+
diff(n=1, dim=-1, prepend=None, append=None) -> Tensor
11641164
11651165
See :func:`torch.diff`
11661166
""")

torch/_torch_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ def merge_dicts(*dicts):
26392639
""".format(**common_args))
26402640

26412641
add_docstr(torch.diff, r"""
2642-
diff(input, *, n=1, dim=-1) -> Tensor
2642+
diff(input, n=1, dim=-1, prepend=None, append=None) -> Tensor
26432643
26442644
Computes the n-th forward difference along the given dimension.
26452645

0 commit comments

Comment 314F s
 (0)
0