Skip to content

Commit f1206a2

Browse files
authored
Merge pull request #386 from bigict/optim
refactor: code reformat
2 parents 104d1cc + 1bbd620 commit f1206a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

profold2/command/trainer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def _step(data_loader, it, writer, stage='train', batch_callback=None):
343343
optimizer.zero_grad(set_to_none=True)
344344

345345
logging.debug(
346-
'_step it: %d, loss_scaler: %f, lr: %s', it, loss_scaler, scheduler.get_lr()
346+
'_step it: %d, loss_scaler: %f, lr: %s', it, loss_scaler,
347+
scheduler.get_last_lr()
347348
)
348349

349350
running_loss = MetricDict()

0 commit comments

Comments
 (0)