Filling a 2D tensor at specific indices without detaching

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.