Solved by tom in post #2 
              
              
                x.view(4, 1) doesn’t change x but returns a tensor (view) of shape 4 x 1 if you want you can assign it to a new variable and use that or plug it into your operation directly.