Hi,
Suppose I have a matrix tensor
a  b
c  d

and want to repeat it into
a 0 b 0
0 a 0 b
c 0 d 0
0 c 0 d

In numpy code, it is y = np.kron(x,np.eye(2)), I want to know pytorch equivalent.
My actual usage is higher than 2D, which has additional dimensions at the tail, though.
Thank you very much!