This commit is contained in:
Mike J Innes 2016-08-26 00:18:58 +01:00
parent 821efb0cf6
commit 2b88be1c7f
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,6 @@ back!(::typeof(σ), Δ, x) = Δ .* σ(x)./(1.-σ(x))
relu(x) = max(0, x)
back(::typeof(relu), Δ, x) = Δ .* (x .< 0)
back!(::typeof(relu), Δ, x) = Δ .* (x .< 0)
softmax(xs) = exp.(xs) ./ sum(exp.(xs))