Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 31, 2024
1 parent 8910336 commit 59a9a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adam_atan2_pytorch/foreach.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def step(
# decay running averages

torch._foreach_lerp_(exp_avgs, grads, 1. - beta1)
torch._foreach_lerp_(exp_avg_sqs, grad_squared, 1. - beta2) # grads is grad squared now
torch._foreach_lerp_(exp_avg_sqs, grad_squared, 1. - beta2)

# clone for update

Expand Down

0 comments on commit 59a9a31

Please sign in to comment.