test = ['0.01171875', '0.01757812', '0.02929688']
test = np.array(test).astype(float)
print(test)
->[0.01171875 0.01757812 0.02929688]
test_torch = torch.from_numpy(test)
test_torch
->tensor([0.0117, 0.0176, 0.0293], dtype=torch.float64)
It looks like from_numpy()
loses some precision there... If I want to convert this float data exactly the same, what kind of functions do I use?