You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a to_json(path) function that writes the best_k_models to a json file in path.
Motivation
Why having a JSON is good?
Then you don't need to load the checkpoints to know the metrics and things like a posteriori stochastic weight averaging gets easier.
It used to be easier in 0.6, but loss values are now tensors, so it's not directly serializable.
This is currently needed:
I just thought about a single function that can be called by the user at the end of training.
But actually, updating/overwritting at every checkpoint also would be cool, at least the user never has to call it.
Link to the PR #3048
🚀 Feature
Have a
to_json(path)
function that writes thebest_k_models
to a json file inpath
.Motivation
Why having a JSON is good?
Then you don't need to load the checkpoints to know the metrics and things like a posteriori stochastic weight averaging gets easier.
It used to be easier in 0.6, but loss values are now tensors, so it's not directly serializable.
This is currently needed:
Instead, we could have
I'm ready to make a PR for it. Just tell me if this would be useful for you.
The text was updated successfully, but these errors were encountered: