That’s not possible out of the box, as it wouldn’t be a linear interpolation anymore.
For your use case you could have a look at the indices, which would be created:
xs = torch.linspace(0, 63, 128)
print(xs)
ys = torch.linspace(0, 7, 16)
print(ys)

which do not contain integer values between the start and end point (close to some, but not exactly equal).