mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix documentation for tensor.repeat. (#131195)
Fixes #130930. Adjusts the documentation which used `sizes` instead of `repeats`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/131195 Approved by: https://github.com/mikaylagawarecki, https://github.com/soulitzer
This commit is contained in:
committed by
PyTorch MergeBot
parent
26383a6cc0
commit
5c78581fc9
@ -4159,7 +4159,7 @@ In-place version of :meth:`~Tensor.renorm`
|
||||
add_docstr_all(
|
||||
"repeat",
|
||||
r"""
|
||||
repeat(*sizes) -> Tensor
|
||||
repeat(*repeats) -> Tensor
|
||||
|
||||
Repeats this tensor along the specified dimensions.
|
||||
|
||||
@ -4174,8 +4174,7 @@ Unlike :meth:`~Tensor.expand`, this function copies the tensor's data.
|
||||
For the operator similar to `numpy.repeat`, see :func:`torch.repeat_interleave`.
|
||||
|
||||
Args:
|
||||
sizes (torch.Size or int...): The number of times to repeat this tensor along each
|
||||
dimension
|
||||
repeat (torch.Size, int..., tuple of int or list of int): The number of times to repeat this tensor along each dimension
|
||||
|
||||
Example::
|
||||
|
||||
|
Reference in New Issue
Block a user