diff --git a/torch/_tensor_docs.py b/torch/_tensor_docs.py index b67cfbe7fbaa2..62871a21ce2f8 100644 --- a/torch/_tensor_docs.py +++ b/torch/_tensor_docs.py @@ -1558,6 +1558,13 @@ def callable(a, b) -> number Unlike :meth:`~Tensor.expand`, this function copies the tensor's data. +.. warning:: + + :func:`torch.repeat` behaves differently from + `numpy.repeat `_, + but is more similar to + `numpy.tile `_. + Args: sizes (torch.Size or int...): The number of times to repeat this tensor along each dimension