I try to compare two torch.FloatTensor (with only one entry) lying on GPU like this:
if (FloatTensor_A > FloatTensor_B): do something
The problem is, that (FloatTensor_A > FloatTensor_B) gives ByteTensor 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?