You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add a rounding_rule option to grid_sample nearest-neighbor sampling. The
default, "bankers", matches PyTorch's ties-to-even behavior; "round_half_up" matches resample(..., mode="nearest") at half-integer
coordinates. PyTorch does not provide this option.
Match PyTorch nearest-neighbor grid sampling at reflected half-integer
boundaries and float32 coordinates immediately adjacent to a rounding tie.