DanielCoelho112 / synfeal

Synfeal: A Data-Driven Simulator for Camera Localization
10 stars 1 forks source link

Save the optimizer state dict together with the model state dict #85

Open DanielCoelho112 opened 2 years ago

DanielCoelho112 commented 2 years ago

According to https://pytorch.org/tutorials/beginner/saving_loading_models.html, when saving the checkpoint we should also save the state dict of the optimizer.