Skip to content

Commit 7a63691

Browse files
mjamrozrwightman
authored andcommitted
avoid getting undefined
1 parent 89ba0da commit 7a63691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timm/models/_helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def resume_checkpoint(
136136
if 'version' in checkpoint and checkpoint['version'] > 1:
137137
resume_epoch += 1 # start at the next epoch, old checkpoints incremented before save
138138

139-
if log_info:
140-
_logger.info("Loaded checkpoint '{}' (epoch {})".format(checkpoint_path, checkpoint['epoch']))
139+
if log_info:
140+
_logger.info("Loaded checkpoint '{}' (epoch {})".format(checkpoint_path, checkpoint['epoch']))
141141
else:
142142
model.load_state_dict(checkpoint)
143143
if log_info:

0 commit comments

Comments
 (0)