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:

Hi! I am experiencing a similar issue. What exactly do you mean by ‘as it wouldn’t be a linear interpolation anymore’? In my use case, I compared the pytorch interpolation result to the scipy.zoom(order=1) result, and they are very different. Specifically, the pytorch interpolation function extended the intensity distribution of the original volume, which I really don’t understand since I was just using trilinear interpolation. The range of the interpolated values should be confined within the range of the original value, right?

A linear interpolation can read values “between” or indices, so forcing to use discrete indices only would not be a linear interpolation anymore in my opinion.

Could you post an executable code snippet for your issue?