Skip to content

Instantly share code, notes, and snippets.

@jojonki
Last active December 7, 2017 15:06
Show Gist options
  • Select an option

  • Save jojonki/96cdc84884eebdb9a358b9cefcb30b33 to your computer and use it in GitHub Desktop.

Select an option

Save jojonki/96cdc84884eebdb9a358b9cefcb30b33 to your computer and use it in GitHub Desktop.
Print training parameters in PyTorch
for name, param in model.named_parameters():
if param.requires_grad:
print(name, param.data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment