I am trying to convert the Pytorch model to the ONNX model. But whie exporting I am facing an error as: RuntimeError: Exporting the operator grid_sampler to ONNX opset version 12 is not supported.
Great! You can find general information about contributing to PyTorch here. I think the CONTRIBUTING docs are also really useful, as you can find best practices there.
Since you are interested in this particular PR, I would recommend to post your interest in the linked issue and follow up with the code owner.