title: Pytorch equivalent of Numpy's logical_and and kin?
body: <p>Does Pytorch have an equivalent of Numpy's element-wise <A HREF="https://docs.scipy.org/doc/numpy/reference/routines.logic.html#logical-operations" rel="noreferrer">logical operators</A> (<code>logical_and</code>, <code>logical_or</code>, <code>logical_not</code>, and <code>logical_xor</code>)? Calling the Numpy functions on Pytorch tensors seems to work well enough when using the CPU, even producing a Pytorch tensor as output. I mainly ask because I assume this would not work so well if the pytorch calculation were running in the GPU.</p>
  
  <p>I've looked through <A HREF="https://pytorch.org/docs/stable/genindex.html" rel="noreferrer">Pytorch's documentation index</A> at all functions containing the string "and" and none seem relevant.</p>