hi, why does linear interpolation not preserve the points themselves?
import torch
import torch.nn.functional as F
torch.manual_seed(0)
a = torch.randn((16,64,8))
b = F.interpolate(a, (a.size(2)*2), mode=‘linear’)



a[0][0]
tensor([-1.1258, -1.1524, -0.2506, -0.4339,  0.8487,  0.6920, -0.3160, -2.1152])




b[0][0]
tensor([-1.1258, -1.1325, -1.1457, -0.9269, -0.4760, -0.2964, -0.3881, -0.1132,
0.5281,  0.8095,  0.7312,  0.4400, -0.0640, -0.7658, -1.6654, -2.1152])



It seems only the corner points are perserved but other points are changed. Is there a way to preserve the rest of points?