Skip to content

Commit

Permalink
diffrules fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Jun 18, 2020
1 parent e5b31ba commit bf8bf7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/forward/number.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ end

zerolike(x::AbstractRange) =
invoke(zerolike, Tuple{Any}, x)

DiffRules._abs_deriv(x::Complex) = x/abs(x)

0 comments on commit bf8bf7b

Please sign in to comment.