Skip to content

Commit 61ad437

Browse files
Update the output to match what Flux shows
1 parent 9a9f566 commit 61ad437

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/src/saving.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Save a model:
1010
julia> using Flux
1111

1212
julia> model = Chain(Dense(10, 5, NNlib.relu), Dense(5, 2), NNlib.softmax)
13-
Chain(Dense(10, 5, NNlib.relu), Dense(5, 2), NNlib.softmax)
13+
Chain(
14+
Dense(10, 5, relu), # 55 parameters
15+
Dense(5, 2), # 12 parameters
16+
NNlib.softmax,
17+
) # Total: 4 arrays, 67 parameters, 524 bytes.
1418

1519
julia> using BSON: @save
1620

@@ -27,7 +31,12 @@ julia> using BSON: @load
2731
julia> @load "mymodel.bson" model
2832

2933
julia> model
30-
Chain(Dense(10, 5, NNlib.relu), Dense(5, 2), NNlib.softmax)
34+
Chain(
35+
Dense(10, 5, relu), # 55 parameters
36+
Dense(5, 2), # 12 parameters
37+
NNlib.softmax,
38+
) # Total: 4 arrays, 67 parameters, 524 bytes.
39+
3140
```
3241

3342
Models are just normal Julia structs, so it's fine to use any Julia storage

0 commit comments

Comments
 (0)