Skip to content

Commit 2bdb7f1

Browse files
authored
Show using Flux before BSON @load
To a novice, it is not obvious that `Flux` module must be in scope before one can `@load` a model saved with `BSON.@save`. This small change makes that requirement explicit.
1 parent 99cb0a8 commit 2bdb7f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/saving.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ julia> @save "mymodel.bson" model
2424
Load it again:
2525

2626
```jldoctest saving
27+
julia> using Flux # must precede @load
28+
2729
julia> using BSON: @load
2830
2931
julia> @load "mymodel.bson" model

0 commit comments

Comments
 (0)