Merge pull request #70 from koenigmaximilian/patch-1

Simplify recurrent example
This commit is contained in:
Huw Campbell 2018-07-11 15:29:04 +10:00 committed by GitHub
commit 92b5760926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,10 +31,10 @@ import Grenade.Recurrent
-- creation function know how to treat the layers.
type R = Recurrent
type RecNet = RecurrentNetwork '[ R (LSTM 1 4), R (LSTM 4 1)]
'[ 'D1 1, 'D1 4, 'D1 1 ]
type RecNet = RecurrentNetwork '[ R (LSTM 1 1)]
'[ 'D1 1, 'D1 1]
type RecInput = RecurrentInputs '[ R (LSTM 1 4), R (LSTM 4 1)]
type RecInput = RecurrentInputs '[ R (LSTM 1 1)]
randomNet :: MonadRandom m => m RecNet
randomNet = randomRecurrent