Skip to content

Commit 3207000

Browse files
Update docs/src/saving.md
Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com>
1 parent 4d3fd75 commit 3207000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/saving.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ revert to an older copy of the model if it starts to overfit.
121121
Note that to resume a model's training, you might need to restore other stateful parts of your training loop. Possible examples are stateful optimizers (which usually utilize an `IdDict` to store their state), and the randomness used to partition the original data into the training and validation sets.
122122

123123
You can store the optimiser state alongside the model, to resume training
124-
exactly where you left off; BSON is smart enough to cache values and insert links when saving, but only if it knows everything to be saved up front. (See [here](https://github.com/JuliaIO/BSON.jl/blob/3b4a2cebda0afae11aab310f0a4d12b6a5234160/src/write.jl#L71).) So models and optimizers must be saved together to have the latter work when restoring.
124+
exactly where you left off. BSON is smart enough to [cache values](https://github.com/JuliaIO/BSON.jl/blob/v0.3.4/src/write.jl#L71) and insert links when saving, but only if it knows everything to be saved up front. Thus models and optimizers must be saved together to have the latter work after restoring.
125125

126126
```julia
127127
opt = ADAM()

0 commit comments

Comments
 (0)