mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix/torch cat doc attr (#135698)
The `torch.cat` attr name for tensors in the docs differs from the method signature, unlike other methods. Pull Request resolved: https://github.com/pytorch/pytorch/pull/135698 Approved by: https://github.com/albanD Co-authored-by: Alexander Jipa <azzhipa@amazon.com>
This commit is contained in:
committed by
PyTorch MergeBot
parent
9a04cfbeff
commit
5ca46be15e
@ -2276,7 +2276,7 @@ add_docstr(
|
||||
r"""
|
||||
cat(tensors, dim=0, *, out=None) -> Tensor
|
||||
|
||||
Concatenates the given sequence of :attr:`seq` tensors in the given dimension.
|
||||
Concatenates the given sequence of tensors in :attr:`tensors` in the given dimension.
|
||||
All tensors must either have the same shape (except in the concatenating
|
||||
dimension) or be a 1-D empty tensor with size ``(0,)``.
|
||||
|
||||
|
Reference in New Issue
Block a user