Minor RNNCell docs fix (#62)

* Minor RNNCell docs fix

Matches the preceding example

* rnn -> rnn2
This commit is contained in:
Joel Mason 2017-09-12 22:12:49 +10:00 committed by Mike J Innes
parent a3fe89e348
commit 568869b9bf
1 changed files with 2 additions and 2 deletions

View File

@ -50,12 +50,12 @@ We sometimes refer to functions like `rnn` above, which explicitly manage state,
```julia
using Flux
m = Flux.RNNCell(10, 5)
rnn2 = Flux.RNNCell(10, 5)
x = rand(10) # dummy data
h = rand(5) # initial hidden state
h, y = rnn(h, x)
h, y = rnn2(h, x)
```
## Stateful Models