Solved by richard in post #2 
              
              
                A tensor of this size is 1-dimensional but has no elements. 
Contrast this to a tensor of size torch.Size([1]), which means it is 1 dimensional and has one element.