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?