[MachineLearning.Inference] Fix the bug for double type of GetValue<T> (#1995)