Skip to content

Commit

Permalink
Update ad.jl (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
yebai authored Jan 23, 2019
1 parent 26f6883 commit ddec408
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/ad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ function gradient_reverse(
return l, ∂l∂θ
end

import Base: <=
<=(a::Tracker.TrackedReal, b::Tracker.TrackedReal) = a.data <= b.data

function verifygrad(grad::AbstractVector{<:Real})
if any(isnan, grad) || any(isinf, grad)
@warn("Numerical error has been found in gradients.")
Expand Down

0 comments on commit ddec408

Please sign in to comment.