From ac94754281bec841b81d441622c682a4b79ba013 Mon Sep 17 00:00:00 2001 From: HenriDeh <47037088+HenriDeh@users.noreply.github.com> Date: Sat, 18 Apr 2020 13:23:11 +0200 Subject: [PATCH] Update stateless.jl --- src/layers/stateless.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layers/stateless.jl b/src/layers/stateless.jl index b26073f3..64191e2d 100644 --- a/src/layers/stateless.jl +++ b/src/layers/stateless.jl @@ -46,6 +46,7 @@ given the prediction `ŷ` and true values `y`. Huber loss = | | δ * (|ŷ - y| - 0.5 * δ), otherwise """ +#TODO: remove dropgrad when Zygote can handle this function with CuArrays function huber_loss(ŷ, y; δ=eltype(ŷ)(1)) abs_error = abs.(ŷ .- y) temp = Zygote.dropgrad(abs_error .< δ)