Behavior of out-of-boundary pixels using grid_sample

Hi, I am using grid_sample. It is great to have such a function in pytorch.

Seems the default behavior of out-of-boundary pixels using grid_sample is inserting zeros. I was wondering if other choices could be supported, for example, nearest-neighbor or linear interpolation. Thanks.

1 Like