Could you provide an example that produces the same output as numpy ?
In [9]: import numpy as np                                                                                                                                                                                                                                                       

In [10]: import torch                                                                                                                                                                                                                                                            

In [11]: x = torch.tensor([[1,2],[3,4]]) 
    ...: x.repeat(1,2)                                                                                                                                                                                                                                                           
Out[11]: 
tensor([[1, 2, 1, 2],
        [3, 4, 3, 4]])

In [12]: x = np.array([[1,2],[3,4]])                                                                                                                                                                                                                                             

In [13]: np.repeat(x, [1,2], axis=0)                                                                                                                                                                                                                                             
Out[13]: 
array([[1, 2],
       [3, 4],
       [3, 4]])