From ddec40847c8552459960ecb78c28b2a18b195a79 Mon Sep 17 00:00:00 2001 From: Hong Ge Date: Wed, 23 Jan 2019 16:48:26 +0000 Subject: [PATCH] Update ad.jl (#656) --- src/core/ad.jl | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/ad.jl b/src/core/ad.jl index 3005e5535..f3b07cbf1 100644 --- a/src/core/ad.jl +++ b/src/core/ad.jl @@ -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.")