lst = [[0, 1, -4, 8],
         [2, -3, 2, 1],
         [5, -8, 7, 1]]

 torch.Tensor(lst)

This is a 4 x 3 matrix. How do swap first and second row to the following matrix?
lst = [[2, -3, 2, 1], 
        [0, 1, -4, 8],
        [5, -8, 7, 1]]

 torch.Tensor(lst)