Skip to content

Commit

Permalink
[Fix] fix load_model_state_dict in BaseStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiao24 committed Nov 30, 2023
1 parent 85c0976 commit b6a4f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmengine/_strategy/base.py
Expand Up @@ -799,7 +799,8 @@ def load_model_state_dict(
else:
model = self.model

_load_checkpoint_to_model(model, state_dict, strict, revise_keys)
_load_checkpoint_to_model(
model, state_dict, strict=strict, revise_keys=revise_keys)

def load_optim_state_dict(self, state_dict: dict) -> None:
"""Load optimizer state from dict."""
Expand Down

0 comments on commit b6a4f00

Please sign in to comment.