The GitHub Actions job "tvm-bot" on tvm.git/main has failed. Run started by GitHub user yongwww (triggered by yongwww).
Head commit for run: c1d32438a00530e3071d0d5721ff93ff65ea3050 / Tianqi Chen <[email protected]> [BugFix][TOPI] Fix resize accuracy issue with non-floor rounding (#18838) ## Summary The int_div optimization in `topi.image.resize` was applied unconditionally for `nearest_neighbor` + `asymmetric` mode, regardless of rounding method. This caused accuracy issues when `rounding_method` is not `"floor"` (e.g., `"round"`, `"round_prefer_ceil"`), because integer division truncates toward zero rather than rounding. **Fix**: Gate the int_div optimization on `rounding_method == "floor"` or `rounding_method == ""` (the default, which gets resolved to `"floor"` for non-align_corners modes). - Updates `_resize_2d` in `python/tvm/topi/image/resize.py` - Updates reference implementation in `python/tvm/topi/testing/resize_python.py` - Updates legalize test expected output to reflect the new behavior Report URL: https://github.com/apache/tvm/actions/runs/22498407923 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
