Convert a float number to float tensor with 100% precision

Hi @jahanifar,

This is most likely due to the print options settings in pytorch (docs here)

Can you set torch.set_printoptions(precision=10) (just after you import torch) and re-run this? You’ll get the correct values. If not, use torch.float64 instead!

1 Like