We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5cd479 commit ee0b75aCopy full SHA for ee0b75a
torch/_tensor_docs.py
@@ -1558,6 +1558,13 @@ def callable(a, b) -> number
1558
1559
Unlike :meth:`~Tensor.expand`, this function copies the tensor's data.
1560
1561
+.. warning::
1562
+
1563
+ :func:`torch.repeat` behaves differently from
1564
+ `numpy.repeat <https://docs.scipy.org/doc/numpy/reference/generated/numpy.repeat.html>`_,
1565
+ but is more similar to
1566
+ `numpy.tile <https://docs.scipy.org/doc/numpy/reference/generated/numpy.tile.html>`_.
1567
1568
Args:
1569
sizes (torch.Size or int...): The number of times to repeat this tensor along each
1570
dimension
0 commit comments