I’m not sure-
does grid_sample actually perform forward warping or backward warping?
maybe it’s better to ask about the combination of:
grid = F.affine_grid(theta, x.size())
x = F.grid_sample(x, grid)
does it look at every pixel location in the dst image and asks- what source pixels should I place here? (backward)
or does it simply moves the src image to the dst image using theta (and hence might leave holes)? (forward)
many thanks!