Skip to content

Instantly share code, notes, and snippets.

@czs0x55aa
Created September 12, 2017 14:08
Show Gist options
  • Save czs0x55aa/f0d0ede221aaee3307a409cccea7dcf1 to your computer and use it in GitHub Desktop.
Save czs0x55aa/f0d0ede221aaee3307a409cccea7dcf1 to your computer and use it in GitHub Desktop.
print model parameters in pytorch
for name, param in model.state_dict().items():
print(name, param.size())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment