Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add size information #21

Merged
merged 1 commit into from
Aug 9, 2018
Merged

Add size information #21

merged 1 commit into from
Aug 9, 2018

Conversation

rmchurch
Copy link
Contributor

@rmchurch rmchurch commented Aug 4, 2018

Added information for estimating the total size of the model. Estimates taken from here: http://jacobkimmel.github.io/pytorch_estimating_model_size/ and associated github repo
-calculates size of input, parameters, and forward/backward pass intermediate variables
-prints out these estimates and total
-batch_size optional input

Sample output:

================================================================
Total params: 132,710
Trainable params: 132,710
Non-trainable params: 0


Input size (MB): 0.10
Forward/backward pass size (MB): 735.99
Params size (MB): 0.51
Estimated Total Size (MB): 736.59


Added information for estimating the total size of the model. Estimates taken from here: http://jacobkimmel.github.io/pytorch_estimating_model_size/
-calculates size of input, parameters, and forward/backward pass intermediate variables
-prints out these estimates and total
-batch_size optional input
@sksq96 sksq96 merged commit 81df232 into sksq96:master Aug 9, 2018
@sksq96
Copy link
Owner

sksq96 commented Aug 9, 2018

This post was a great read. Thanks for adding this to the package!

@jamespy007
Copy link

Thanks for the tool you provided! Here is my question: will pytorch-summary working for GRU or other RNN module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants