Skip to content

v0.6.0-beta

Choose a tag to compare

@JoHof JoHof released this 11 Sep 21:18
· 7 commits to main since this release
3ec4728
  • 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.