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
{{ message }}
Repository navigation
[Bug Report] LinearInterpolation produces NaN gradients during constant extrapolation #9242
LinearInterpolation.compute() divides by zero when its lower and upper sample indices coincide, then masks the resulting weight. The forward value is correct, but autograd differentiates through the invalid division and produces NaN query gradients. This affects queries outside the sampled range and single-sample curves, both of which should be constant.
Actual: NaN gradients outside the sampled range. Expected: [0., 2., 4., 0.].
System Info
main at ebf162a, macOS ARM64, Python 3.12, PyTorch 2.12.0. CPU reproduction without Isaac Sim.
Additional context
Mask the numerator and denominator for coincident bounds before division. Both focused regression tests fail on main and pass with this change. No downstream simulation failure is claimed.
Activity