When I loaded the checkpoint, the program reported an error: Unable to load the optimizer, so I found this line of code. Why is the optimizer dictionary not saved when save_best is true? Will this affect my continued training?
'optimizer': self.optimizer.state_dict() if not save_best else None
'scheduler': self.scheduler.state_dict() if not save_best else None
When I loaded the checkpoint, the program reported an error: Unable to load the optimizer, so I found this line of code. Why is the optimizer dictionary not saved when save_best is true? Will this affect my continued training?
Best Wishes!