Skip to content

Commit

Permalink
Clarify that legacy cat behavior only applies for 1-D tensor (pytorch…
Browse files Browse the repository at this point in the history
…#119684)

Signed-off-by: Edward Z. Yang <[email protected]>
Pull Request resolved: pytorch#119684
Approved by: https://github.com/albanD
  • Loading branch information
ezyang authored and pytorchmergebot committed Feb 12, 2024
1 parent 059bf1b commit 31f00b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_torch_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,7 @@ def merge_dicts(*dicts):
Concatenates the given sequence of :attr:`seq` tensors in the given dimension.
All tensors must either have the same shape (except in the concatenating
dimension) or be empty.
dimension) or be a 1-D empty tensor with size ``(0,)``.
:func:`torch.cat` can be seen as an inverse operation for :func:`torch.split`
and :func:`torch.chunk`.
Expand Down

0 comments on commit 31f00b0

Please sign in to comment.