Skip to content

Commit

Permalink
Revert "Update abs diff rule to 0 at non-differentiable point" (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Jun 5, 2023
1 parent 3fcdea9 commit 64145a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

# We provide this hook for special number types like `Interval`
# that need their own special definition of `abs`.
_abs_deriv(x) = sign(x)
_abs_deriv(x) = signbit(x) ? -one(x) : one(x)

# binary #
#--------#
Expand Down

0 comments on commit 64145a8

Please sign in to comment.