Does the nn.funtional.grid_sample backwards grad to grid?

although you will get 0 grad grid if you are using it with nearest neighbor sampling

1 Like