In 3-dimension tensor, count how many items are there. 0th dimension [ [ [ , ] ] ] [] = 3 1st dimension [ [ [ , ] ] ] [] = 1 2nd dimension [ [ [ , ] ] ] [] = 2 tensor([[[0, 1]], [[1, 1]], [[2, 1]]]) torch.Size([3, 1, 2]) FloatTensor Create matrix. torch.FloatTensor([[1.,2.],[3.,4.],[5.,6.]]) >>> tensor([[1., 2.], [3., 4.], [5., 6.]]) view Same function as reshape in numpy. -1 : It means I am not..