Merge pull request #328 from jjerphan/patch-1

Very Little typo.
This commit is contained in:
Mike J Innes 2018-07-19 12:35:58 +01:00 committed by GitHub
commit c565317d9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ Flux has powerful high-level features, and common architectures can be defined i
```julia
model = Chain(
Dense(768, 128, σ),
LSTM(128, 256)
LSTM(256, 128)
LSTM(128, 256),
LSTM(256, 128),
Dense(128, 10),
softmax)

View File

@ -129,7 +129,7 @@ linear2 = linear(3, 2)
model(x) = linear2(σ.(linear1(x)))
model(x) # => 2-element vector
model(rand(5)) # => 2-element vector
```
Another (equivalent) way is to create a struct that explicitly represents the affine layer.