From ee630a856659f31284f4ffcb640b7154bf374e2a Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Wed, 18 Jul 2018 23:20:43 +0200 Subject: [PATCH 1/2] Very Little typo. --- docs/src/models/basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/models/basics.md b/docs/src/models/basics.md index 134e251b..04e8459d 100644 --- a/docs/src/models/basics.md +++ b/docs/src/models/basics.md @@ -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. From 34d0c39e72659027fb4facea7c5cefb7abdeec52 Mon Sep 17 00:00:00 2001 From: Julien Jerphanion Date: Thu, 19 Jul 2018 00:14:02 +0200 Subject: [PATCH 2/2] Ditto. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 10d611f1..94110087 100644 --- a/README.md +++ b/README.md @@ -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)