Skip to content

Commit

Permalink
Update descriptor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Dec 18, 2024
1 parent 63040af commit ffb70c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/model/descriptor/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def share_params(self, base_class, shared_level, resume=False) -> None:
if shared_level == 0:
# link buffers
if hasattr(self, "mean"):
if not resume:
if not resume or (getattr(self, "skip_stat", False)):
# in case of change params during resume
base_env = EnvMatStatSe(base_class)
base_env.stats = base_class.stats
Expand Down

0 comments on commit ffb70c3

Please sign in to comment.