Skip to content

Commit b6a675a

Browse files
Update src/rules.jl
Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com>
1 parent a37cab2 commit b6a675a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/rules.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,9 @@ function apply!(o::Rprop, state, x, dx)
169169
η = broadcast(g, η, dx) do g, η, dx
170170
g * dx > 0 ? min* ℓ[2], Γ[2]) : g * dx < 0 ? max* ℓ[1], Γ[1]) : η
171171
end
172-
173172
g = broadcast(g, dx) do g, dx
174173
g * dx < 0 ? zero(dx) : dx
175174
end
176-
177175
dx′ = @lazy η * sign(g)
178176

179177
return (g, η), dx′

0 commit comments

Comments
 (0)