Skip to content

Instantly share code, notes, and snippets.

@napoler
Created September 29, 2021 08:56
Show Gist options
  • Save napoler/fcb3ddb66b18108bb1753e09ac8875c4 to your computer and use it in GitHub Desktop.
Save napoler/fcb3ddb66b18108bb1753e09ac8875c4 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
optimizer = optim.Adam(filter(lambda p: p.requires_grad, model.parameters()), lr=0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment