dense layer

This commit is contained in:
Mike J Innes 2016-08-22 14:49:41 +01:00
parent 4b9a2b865d
commit 5995597ebc
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
@model type Dense
W
b
x -> W*x + b
end
Dense(in::Integer, out::Integer; init = randn) =
Dense(init(out, in), init(out))