Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 31, 2024
1 parent 053957f commit a033030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adam_atan2_pytorch/adam_atan2.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def step(
# using atan2 instead of a division with epsilon in denominator
# a * atan2(exp_avg / bias_correct1, b * sqrt(exp_avg_sq / bias_correct2))

den = exp_avg_sq.mul_(b * b / bias_correct2).sqrt_()
den = exp_avg_sq.clone().mul_(b * b / bias_correct2).sqrt_()
update = exp_avg.clone().mul_(1. / bias_correct1).atan2_(den)

# update parameters
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "adam-atan2-pytorch"
version = "0.0.4"
version = "0.0.5"
description = "Adam-atan2 for Pytorch"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down

0 comments on commit a033030

Please sign in to comment.