Solved by rasbt in post #7 
              
              
                Sure, maybe this can be best explained by an example: 
In [1]: import torch                                                            

In [2]: a = torch.tensor([1, 2, 3])                                             

In [3]: b = a.clone().view(-1, 1)                                               
…