Adding a new operator for an objective which involves gradients

Sure I can help. I will find some time soon to collaborate. BTW, do you plan opening a PR?