view It merely creates a view of the original tensor. Same function as reshape in numpy. -1 : It means I am not sure so I will let pytorch to decide the dimension. torch.FloatTensor([[[1.,2.],[3.,4.]],[[5.,6.],[7.,8.]]]) >>> tensor([[[1., 2.], [3., 4.]], [[5., 6.], [7., 8.]]]) t.view([-1,2]) >>> tensor([[1., 2.], [3., 4.], [5., 6.], [7., 8.]]) a=torch.randn(1,2,3,4) a >>> tensor([[[[ 0.3861, -0...