We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dfc85b commit e71b5c2Copy full SHA for e71b5c2
1 file changed
deepmd/pt/train/training.py
@@ -417,6 +417,10 @@ def get_lr(lr_params):
417
missing_keys = [
418
item for item in target_keys if item not in input_keys
419
]
420
+ old_model_params = self.wrapper.state_dict()["_extra_state"][
421
+ "model_params"
422
+ ]
423
+ state_dict["_extra_state"]["model_params"] = old_model_params
424
if missing_keys:
425
target_state_dict = self.wrapper.state_dict()
426
slim_keys = []
0 commit comments