Skip to content

Commit

Permalink
fix a docstring of resolve_neg
Browse files Browse the repository at this point in the history
  • Loading branch information
kato8966 committed Jun 24, 2023
1 parent 454f4e9 commit a95ab54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torch/_torch_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3044,6 +3044,7 @@ def merge_dicts(*dicts):
Returns a new tensor with materialized negation if :attr:`input`'s negative bit is set to `True`,
else returns :attr:`input`. The output tensor will always have its negative bit set to `False`.
Args:
{input}
Expand All @@ -3054,12 +3055,11 @@ def merge_dicts(*dicts):
>>> z = y.imag
>>> z.is_neg()
True
>>> out = y.resolve_neg()
>>> out = z.resolve_neg()
>>> out
tensor([-1, -2, -3])
tensor([-1., -2., 3.])
>>> out.is_neg()
False
""".format(
**common_args
),
Expand Down

0 comments on commit a95ab54

Please sign in to comment.