title: Elegant way to compare to torch.FloatTensor on GPU
body: <p>I try to compare two torch.FloatTensor (with only one entry) lying on GPU like this:</p>
  
  <blockquote>
    <p>if (FloatTensor_A > FloatTensor_B): do something</p>
  </blockquote>
  
  <p>The problem is, that <code>(FloatTensor_A &gt; FloatTensor_B)</code> gives <code>ByteTensor</code> back. Is there a way to do boolean comparison between these two scalar FloatTensors, without loading the tensors on CPU and converting them back to numpy or conventional floats?</p>