rnn tanh by default

This commit is contained in:
Mike J Innes 2017-09-12 13:12:25 +01:00
parent 6728295355
commit a3fe89e348

View File

@ -34,7 +34,7 @@ struct RNNCell{D,V}
h::V
end
RNNCell(in::Integer, out::Integer, σ=identity; init = initn) =
RNNCell(in::Integer, out::Integer, σ = tanh; init = initn) =
RNNCell(Dense(in+out, out, σ, init = init), param(init(out)))
function (m::RNNCell)(h, x)