Skip to content

Fix Trainer.restore_exp()#1

Open
TheVinz wants to merge 1 commit intomarcociccone:masterfrom
TheVinz:patch-1
Open

Fix Trainer.restore_exp()#1
TheVinz wants to merge 1 commit intomarcociccone:masterfrom
TheVinz:patch-1

Conversation

@TheVinz
Copy link

@TheVinz TheVinz commented Jun 25, 2021

If self._model_optimizer is a dict, it has no load_state_dict() method. For loading each optimizer it is necessary to access the dictionary by using self._model.optimizer[key] first, and then use the load_state_dict() method.

If self._model_optimizer is a dict, it has no load_state_dict() method. For loading each optimizer it is necessary to access the dictionary by using self._model.optimizer[key] first, and then use the load_state_dict() method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant