Skip to content

Commit

Permalink
Fix issue by initialising opt_start_epoch as None
Browse files Browse the repository at this point in the history
  • Loading branch information
vue1999 authored Jan 21, 2025
1 parent f2243bc commit 5da7dff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mace/cli/run_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ def run(args: argparse.Namespace) -> None:

start_epoch = 0
restart_lbfgs = False
opt_start_epoch = None
if args.restart_latest:
try:
opt_start_epoch = checkpoint_handler.load_latest(
Expand Down

0 comments on commit 5da7dff

Please sign in to comment.