Skip to content

Commit

Permalink
as_strided_scatter storage offset defaults to None not 0 (pytorch#87481)
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: pytorch#87481
Approved by: https://github.com/bdhirsh
  • Loading branch information
ezyang authored and sgrigory committed Oct 28, 2022
1 parent da0f421 commit dfd629a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torch/_tensor_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ def add_docstr_all(method, docstr):
add_docstr_all(
"as_strided_scatter",
r"""
as_strided_scatter(src, size, stride, storage_offset=0) -> Tensor
as_strided_scatter(src, size, stride, storage_offset=None) -> Tensor
See :func:`torch.as_strided_scatter`
""",
Expand Down
2 changes: 1 addition & 1 deletion torch/_torch_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3740,7 +3740,7 @@ def merge_dicts(*dicts):
add_docstr(
torch.as_strided_scatter,
r"""
as_strided_scatter(input, src, size, stride, storage_offset=0) -> Tensor
as_strided_scatter(input, src, size, stride, storage_offset=None) -> Tensor
Embeds the values of the :attr:`src` tensor into :attr:`input` along
the elements corresponding to the result of calling
Expand Down

0 comments on commit dfd629a

Please sign in to comment.