torch.Tensor.repeat_interleave Tensor.repeat_interleave(repeats, dim=None, *, output_size=None) → Tensor See .