Skip to content

Commit

Permalink
Merge pull request graphnet-team#651 from RasmusOrsoe/display_current…
Browse files Browse the repository at this point in the history
…_learning_rate

Log current lr in `StandardModel`
  • Loading branch information
RasmusOrsoe authored Feb 6, 2024
2 parents d30bf71 + 4042375 commit 5c93a7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/graphnet/models/standard_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ def training_step(
on_step=False,
sync_dist=True,
)

current_lr = self.trainer.optimizers[0].param_groups[0]["lr"]
self.log("lr", current_lr, prog_bar=True, on_step=True)
return loss

def validation_step(
Expand Down

0 comments on commit 5c93a7a

Please sign in to comment.