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
You'd get model.statedict()and save it with torch.save(...). Ideally, just save the model if it was of greater accuracy than any epoch before. One approach is to wrap the statedict in an outer dictionary that also contains this value.
Load the statedict with torch.load(...) and then into the model with model.load_state_dict(...). Hope that helps. I might bolt that very necessary feature on one day ;)
What would be the best way to save models and then use saved model to make predictions?
The text was updated successfully, but these errors were encountered: