What does the "greater than" operator ">" mean for PyTorch tensors?
I have a tensor it defined as:

import torch
it = torch.tensor([0,  0,  0,  0,  0,  0,  0,  0,  0,  0], device='cuda:0')


Given this definition, what does it &gt; 0 then mean?

Using the &gt; operator is the same as using the torch.gt() function.  

In other words, 

it &gt; 0


is the same as 

torch.gt(it, 0)


and it returns a ByteTensor (a Boolean tensor) of the same shape as it where out[i] is True if it[i] &gt; 0 and False otherwise. 
