PyTorch Forums
Restrict range of variable during gradient descent
jekbradbury
(James Bradbury)
April 17, 2017, 6:37pm
2
I would copy the code for the Adam optimizer and modify it to do what you want.
1 Like
Constraint parameter as in tensorflow/python/keras/constraints
show post in topic