make forward functions anon

This commit is contained in:
Mike J Innes 2016-05-08 23:09:55 +01:00
parent 2cb6085a61
commit 0b5aad84fc

View File

@ -3,7 +3,7 @@
@flux type Simple
weight
bias
feed(x) = σ( weight*x + bias )
x -> σ( weight*x + bias )
end
Simple(nx::Integer, ny::Integer; init = randn) =
@ -41,7 +41,7 @@ Recurrent(nx, ny, nh; init = randn) =
delay::Delay
layer::T
function feed(x)
function (x)
y, hidden = layer(x, delay(hidden))
return y
end