C++ 3rd party library for optimizer

Hi all,

I am using C++ version of pytorch.
I would like to use 3rd party optimizer for training.
Is this possible to achieve? Did anybody attempt that? Is there any example?

you can try NVIDIA apex tool

What kind of 3rd party implementation are you looking for?
apex works using the Python frontend and is used for mixed precision training.

I have several methods for constrained minimization implemented in pure c++ and I would like to use them for training DNNs.
I was hoping that there is easy way to access raw pytorch data (trainable parameters, gradients), so I could just hook up solver.
Can something like this be done?