Not sure if that’s mixed-precision related but here is what happened:
a = torch.tensor([1.1])
a.item() <-- 1.100000023841858
a <= 1.1  <-- True
a.item() <= 1.1 <-- False
I’m a bit confused here…
my env ==>
pytorch = 1.6.0
python = 3.7.6