Use c10::variant-based enums for F::grid_sample
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29535
Test Plan: Imported from OSS
Differential Revision: D18432273
Pulled By: yf225
fbshipit-source-id: 11476f0431a9b544dfb62bc7a89bab84399f9b83