How to clip the parameters of model? #1437
Unanswered
L-M-Sherlock
asked this question in
Q&A
Replies: 2 comments 11 replies
-
You should be able to just call Line 534 in 52db7d7 |
Beta Was this translation helpful? Give feedback.
5 replies
-
@wozeparrot, sorry for bothering you. But I meet another error when I clip the model's weights with your code:
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to some constraint, I need to limit the range of each parameter. Here is an implementation in PyTorch:
Source: https://discuss.pytorch.org/t/set-constraints-on-parameters-or-layers
I try to clip the parameters of model during optimization with this code:
But I get this error:
Beta Was this translation helpful? Give feedback.
All reactions