Hi Peter!



 sparseinference:

The two methods produce slightly different values after the 6th decimal place.
Shouldn’t these be exactly the same?


No.  in general, the two results can differ by floating-point round-off error,
so this is expected.
Try redoing your test using all torch.float64 tensors (double precision).
You should still see a discrepancy, but now in something like the 15th
significant (decimal) digit.
Best.
K. Frank