关于pytorch grid_sample()
torch.nn.functional.grid_sample(input, grid, mode=‘bilinear’, padding_mode=‘zeros’)其中,grid的shape为(N, H, W, 2)对于output上的每一点,(x, y)三个通道的像素值,采集自input上某一点三个通道的像素值,采集的点存在于grid最低维,也就是(N, H, W, 2)中的2, [0]索...