Pytorch is messing with my floats.
import torch
t = torch.FloatTensor([[1.3]])
print(t)
print(t.item())
prints
tensor([[1.3000]])
1.2999999523162842
I tried to use torch.Tensor([[1.3]]) as well and had the same issue. I don't get why 1.3 is something impossible to represent. Also torch.Tensor([[1.5]]) works just fine which is weird.