We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053957f commit a033030Copy full SHA for a033030
adam_atan2_pytorch/adam_atan2.py
@@ -86,7 +86,7 @@ def step(
86
# using atan2 instead of a division with epsilon in denominator
87
# a * atan2(exp_avg / bias_correct1, b * sqrt(exp_avg_sq / bias_correct2))
88
89
- den = exp_avg_sq.mul_(b * b / bias_correct2).sqrt_()
+ den = exp_avg_sq.clone().mul_(b * b / bias_correct2).sqrt_()
90
update = exp_avg.clone().mul_(1. / bias_correct1).atan2_(den)
91
92
# update parameters
pyproject.toml
@@ -1,6 +1,6 @@
1
[project]
2
name = "adam-atan2-pytorch"
3
-version = "0.0.4"
+version = "0.0.5"
4
description = "Adam-atan2 for Pytorch"
5
authors = [
6
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
0 commit comments