Suggest to add more tips in F.grid_sample() function

I see a warning executing my code snippet from the older post given as:

UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.

which results in a different output than seen in my old post.
Setting align_corners=True to use the old behavior results in the same outputs again.

Your approach of using align_corners=False with padding_mode="border" does not yield the same result.