Skip to content

Commit

Permalink
[Fix] Fix load_model_state_dict in BaseStrategy (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
SCZwangxiao committed Dec 23, 2023
1 parent 504fa4f commit efcd364
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmengine/_strategy/base.py
Original file line number Diff line number Diff line change
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 efcd364

Please sign in to comment.