Skip to content

Instantly share code, notes, and snippets.

@brodzik
Created August 27, 2020 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brodzik/aa2567cd336d1a72648520b114788634 to your computer and use it in GitHub Desktop.
Save brodzik/aa2567cd336d1a72648520b114788634 to your computer and use it in GitHub Desktop.
Get the current learning rate in PyTorch
def get_lr(optimizer):
for p in optimizer.param_groups:
return p["lr"]
@simon-donike
Copy link

cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment