Fix inaccuracy in nt constructor documentation + broken rendering (#89152)

Rendering was broken and docstring seemed to be inaccurate

![Screen Shot 2022-11-16 at 2 16 28 PM](https://user-images.githubusercontent.com/35276741/202273588-a2da5b7b-1a6d-46bb-a74e-c0de9a0fd064.png)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/89152
Approved by: https://github.com/cpuhrsch
This commit is contained in:
Mikayla Gawarecki
2022-11-16 19:17:08 +00:00
committed by PyTorch MergeBot
parent 5848704ef8
commit ec61951f07

View File

@ -125,8 +125,8 @@ Constructs a nested tensor with no autograd history (also known as a “leaf ten
:ref:`Autograd mechanics <autograd-mechanics>`) from :attr:`tensor_list` a list of tensors.
Args:
tensor_list (List[array_like]): a list of tensors (or anything that can be passed to torch.tensor)
where their first dimension can be of irregular size, but all other dimensions have to be equal.
tensor_list (List[array_like]): a list of tensors, or anything that can be passed to torch.tensor,
where each element of the list has the same dimensionality.
Keyword arguments:
dtype (:class:`torch.dtype`, optional): the desired type of returned nested tensor.