Created
April 6, 2021 17:15
-
-
Save alinaselega/b14b37f696a071b69f7840f26e7b6a2e to your computer and use it in GitHub Desktop.
Code snippet to print model parameters after training
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for param_name, param in model.named_parameters(): | |
print(f'Parameter name: {param_name:42} value = {param.item():.4f}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment