Fix MoGe antialiased interpolation for half precision#14637
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR adds 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
F.interpolate(..., antialias=True).Motivation
PyTorch does not implement antialiased interpolation for float16/bfloat16 tensors on some backends, which can raise
NotImplementedError: "compute_index_ranges_weights" not implemented for 'Half'orBFloat16.Testing
git diff --check_interpolate_antialias_safewith float16, bfloat16, and float32 tensors using the local.venvand--cpu.