File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,6 @@ def step(
8787 state ['steps' ] += 1
8888 continue
8989
90- # logic
91-
92- steps += 1
93-
9490 # calculate m
9591
9692 grad_sq = grad * grad
@@ -109,6 +105,6 @@ def step(
109105
110106 # increment steps
111107
112- state ['steps' ] = steps
108+ state ['steps' ] += 1
113109
114110 return loss
Original file line number Diff line number Diff line change @@ -90,10 +90,6 @@ def step(
9090 state ['steps' ] += 1
9191 continue
9292
93- # logic
94-
95- steps += 1
96-
9793 # calculate m
9894
9995 grad_sq = grad * grad
@@ -112,6 +108,6 @@ def step(
112108
113109 # increment steps
114110
115- state ['steps' ] = steps
111+ state ['steps' ] += 1
116112
117113 return loss
Original file line number Diff line number Diff line change 11[project ]
22name = " adam-atan2-pytorch"
3- version = " 0.1.8 "
3+ version = " 0.1.9 "
44description = " Adam-atan2 for Pytorch"
55authors = [
66 {
name =
" Phil Wang" ,
email =
" [email protected] " }
You can’t perform that action at this time.
0 commit comments