Skip to content

Commit a033030

Browse files
committed
oops
1 parent 053957f commit a033030

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adam_atan2_pytorch/adam_atan2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def step(
8686
# using atan2 instead of a division with epsilon in denominator
8787
# a * atan2(exp_avg / bias_correct1, b * sqrt(exp_avg_sq / bias_correct2))
8888

89-
den = exp_avg_sq.mul_(b * b / bias_correct2).sqrt_()
89+
den = exp_avg_sq.clone().mul_(b * b / bias_correct2).sqrt_()
9090
update = exp_avg.clone().mul_(1. / bias_correct1).atan2_(den)
9191

9292
# update parameters

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "adam-atan2-pytorch"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
description = "Adam-atan2 for Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

0 commit comments

Comments
 (0)