Only bilinear is supported: https://pytorch.org/docs/master/nn.html?highlight=grid_sample#torch.nn.functional.grid_sample 18
But the code should really throw an error if you try to pass anything other than bilinear. I’ve opened an issue here: https://github.com/pytorch/pytorch/issues/8693 22 for this.