Solved by AlphaBetaGamma96 in post #2 
              
              
                Would you mind sharing the code? 
As you said unsqueeze and then repeat don’t work, 
matrix=torch.sparse_coo_tensor(size=(3,3))
matrix.unsqueeze(2).repeat(1,1,4)
#RuntimeError: sparse tensors do not have strides

However, you can get around this via using list comprehension and torch.stack, by, 
mat…