Skip to content

Commit

Permalink
[docs] Add cross references to torch.transpose and torch.t
Browse files Browse the repository at this point in the history
**Summary**
This commit adds a link in the documentation for `torch.transpose` that
directs to `torch.t` and vice versa. These two functions are related and
it is useful for users of one to know about the other.

**Test Plan**
Continuous integration.

**Fixes**
This commit fixes #56267.

ghstack-source-id: d144b9cd7fbc015d2296fc76cee1869daa69fb14
Pull Request resolved: #63177
  • Loading branch information
Meghan Lele committed Aug 12, 2021
1 parent bf7d03f commit c41c14a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torch/_torch_docs.py
Expand Up @@ -9350,6 +9350,8 @@ def merge_dicts(*dicts):
tensor([[ 0.4875, 0.3938],
[ 0.9158, -0.6929],
[-0.5872, 0.6932]])
See also :func:`torch.transpose`.
""".format(**common_args))

add_docstr(torch.flip,
Expand Down Expand Up @@ -9709,6 +9711,8 @@ def merge_dicts(*dicts):
tensor([[ 1.0028, -0.1669],
[-0.9893, 0.7299],
[ 0.5809, 0.4942]])
See also :func:`torch.t`.
""".format(**common_args))

add_docstr(torch.triangular_solve,
Expand Down

0 comments on commit c41c14a

Please sign in to comment.