Ways to export/import network weights
samuelvenzi opened this issue · comments
Does Goro support any way of exporting/saving and then importing the trained model?
Gorgonia has a way of doing this https://gorgonia.org/how-to/save-weights/ I haven't worked this in as first class citizen, but you should be able to call Learnables()
to get the differentiable weights and use gob to save them.
If you wanted to write a cleaner method for this I would be happy to review the PR!
Saving the Learnables()
was pretty straight-forward, but is there any method to import them after loading them from the file?
https://github.com/aunum/goro/blob/master/pkg/v1/model/model.go#L606 is probably the best example, that could be refactored to use a LoadLearnables()
or SetLearnables()
method.
thanks for the contribution! closing with merge #3