I am reading this paper https://arxiv.org/pdf/1703.03130.pdf 4
I want to implement the loss function with regularization as given in the paper. Can I know how can I do that. Do I have to give the gradient formulae to the pytorch or it automatically differentiate and find the gradient.