-
While running my model I realized that only the weight is affected by training while the bias parameter remains the same. I went through the code to try and find an error but there was none I could see. Please help. here is the code: Model:
Output of model.parameters():
Loss and Optimizer: Training:
Output from training:
|
Beta Was this translation helpful? Give feedback.
Answered by
ShayCerny
May 31, 2024
Replies: 1 comment
-
For anyone who may end up here. I came back to this after a few hours and realized I had missed a 'self' in the forward function |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ShayCerny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone who may end up here. I came back to this after a few hours and realized I had missed a 'self' in the forward function