Amulya_Jitendra_Agar:

A = [[0,1,2], [3,4,5], [6,7,8]] [[9,10,11], [12,13,14], [15,16,17]]


Assuming that A is a list, then you can do the following A = torch.tensor(A*10). But if A is a tensor not a list, then you can split A to a list, and then repeat each element and convert it back to tensor:
>>> A2 = torch.cat(list(torch.split(A, 1, dim=0))*10)
>>> A2.shape
torch.Size([20, 3, 3])