mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix inaccuracy in nt constructor documentation + broken rendering (#89152)
Rendering was broken and docstring seemed to be inaccurate  Pull Request resolved: https://github.com/pytorch/pytorch/pull/89152 Approved by: https://github.com/cpuhrsch
This commit is contained in:
committed by
PyTorch MergeBot
parent
5848704ef8
commit
ec61951f07
@ -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.
|
||||
|
Reference in New Issue
Block a user