fix foldl in tutorial

This commit is contained in:
Pietro Vertechi 2018-08-29 18:36:24 +01:00
parent 53be49b102
commit abcefb8ae3
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ using Flux
layers = [Dense(10, 5, σ), Dense(5, 2), softmax]
model(x) = foldl((x, m) -> m(x), x, layers)
model(x) = foldl((x, m) -> m(x), layers, init = x)
model(rand(10)) # => 2-element vector
```