remove some explicit back!

This commit is contained in:
Mike J Innes 2017-08-18 01:18:07 +01:00
parent 052cc52ada
commit 21089fea9c

View File

@ -6,16 +6,3 @@ end
Affine(in::Integer, out::Integer; init = initn) =
Affine(init(in, out), init(1, out))
function back!(m::Affine, Δ, x)
W, b = m.W, m.b
W.Δx[:] = x' * Δ
b.Δx[:] = sum(Δ, 1)
Δ * W.x'
end
function update!(m::Affine, η)
update!(m.W, η)
update!(m.b, η)
m
end