Skip to content

Commit

Permalink
Added file for deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
msainsburydale committed Sep 1, 2024
1 parent 98b216b commit adc9ab2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#NB deprecated because it isn't the recommended way of storing models anymore
"""
loadbestweights(path::String)
Returns the weights of the neural network saved as 'best_network.bson' in the given `path`.
"""
loadbestweights(path::String) = loadweights(joinpath(path, "best_network.bson"))
loadweights(path::String) = load(path, @__MODULE__)[:weights]

0 comments on commit adc9ab2

Please sign in to comment.