Skip to content

Commit

Permalink
weight decay grammer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed May 25, 2023
1 parent 28e616e commit b6459b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sophia/Sophia.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def step(self, closure=None):


if group['weight_decay'] != 0:
grad = grad.add(group["weight_decau"], p.data)
grad = grad.add(group["weight_decay"], p.data)

#update biased first moment estimate
m.mul_(beta1).add_(1 - beta1, grad)
Expand Down

0 comments on commit b6459b4

Please sign in to comment.