Add optimizer nodes while exporting PyTorch model to ONNX

I am trying to export a PyTorch model to ONNX having RMSprop as optimizer. But ONNX does not support the RMSprop operator, Is there any possibility to add unsupported nodes to ONNX while exporting?
Thanks