introduction to pytorch listing - accessing single value from tensor in [ ] torch tensor([[[ ]]]in [ ] out[ ]tensor([[[ ]]]in [ ] shape out[ ]torch size([ ]in [ ] item(out[ ] the view method provides an easy way to reshape tensor essentiallythe values in tensor are allocated in contiguous blocks of memory the pytorch tensor is essentially just view over this continuous block multiple indexes can refer to the same storage and represent the tensor in different shapes listing - demonstrates simple example of reshaping tensor listing - reshaping tensor in [ ] torch zeros( in [ ] out[ ]tensor([ ]in [ ] shape out[ ]torch size([ ]in [ ] view( , in [ ] out[ ]tensor([[ ][ ]]