Force positive parameter

Hi !

I was wondering if an elegant way to fix the sign of a Parameter during the gradient descent.
For now, what I can think of is to manually rectify the weights after each step of the optimizer, is there a more clever way ?