Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Dec 20, 2024
1 parent 79d3169 commit 5fb1509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pd/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def warm_up_linear(step, warmup_steps):
)
if optimizer_state_dict is not None and self.restart_training:
self.optimizer.set_state_dict(optimizer_state_dict)
self.scheduler.last_epoch -= 1 # need to minus 1 to accurate
self.scheduler.last_epoch -= 1

Check warning on line 598 in deepmd/pd/train/training.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pd/train/training.py#L598

Added line #L598 was not covered by tests
else:
raise ValueError(f"Not supported optimizer type '{self.opt_type}'")

Expand Down

0 comments on commit 5fb1509

Please sign in to comment.