Ah, I figured it out. Basically you can floor the float index, then interpolate the int indices using the float one. That’s autograd friendly.