thanks for the super quick response.  That’s exactly what I need.
Sorry if I didn’t look hard enough and my question was perhaps trivial, but I don’t seem to be able to find it in the documentation neither under tensor, nor where all the other comparison ops are listed in math:
http://pytorch.org/docs/master/torch.html#comparison-ops 912