torch.Tensor.repeat — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.Tensor.repeat. Tensor.repeat(*sizes) → Tensor. Repeats this tensor along the specified dimensions. Unlike expand (), this function copies the tensor’s data. Warning. repeat () behaves differently from numpy.repeat , but is more similar to numpy.tile . For the operator similar to numpy.repeat, see torch.repeat_interleave ().