Substitute for numpy's repeat function. Taken from https://discuss.pytorch.org/t/how-to-tile-a-tensor/13853/2 torch.repeat([1,2,3], 2) --> [1, 2, 3, 1, 2, 3] np.repeat([1,2,3], repeats=2, axis=0) --> [1, 1, 2, 2, 3, 3] :param a: tensor :param repeats: number of repeats :par
(a, repeats, dim=0)
source not stored for this graph (policy: none)