mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[dim order] solve broken doc
Pull Request resolved: https://github.com/pytorch/pytorch/pull/146641 ghstack-source-id: 265334899 Differential Revision: [D69265340](https://our.internmc.facebook.com/intern/diff/D69265340/)
This commit is contained in:
parent
5d7532140f
commit
751c70500c
1 changed files with 3 additions and 0 deletions
|
|
@ -1517,6 +1517,8 @@ class Tensor(torch._C.TensorBase):
|
|||
Args:
|
||||
ambiguity_check (bool or List[torch.memory_format]): The check method for ambiguity of dim order.
|
||||
|
||||
Examples::
|
||||
|
||||
>>> torch.empty((2, 3, 5, 7)).dim_order()
|
||||
(0, 1, 2, 3)
|
||||
>>> torch.empty((2, 3, 5, 7)).transpose(1, 2).dim_order()
|
||||
|
|
@ -1539,6 +1541,7 @@ class Tensor(torch._C.TensorBase):
|
|||
... except TypeError as e:
|
||||
... print(e)
|
||||
The ambiguity_check argument must be a bool or a list of memory formats.
|
||||
|
||||
.. warning::
|
||||
The dim_order tensor API is experimental and subject to change.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue