-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
summarize total size of model params in bytes (#5590)
* simplified model size calc * fix spaces * fix newlines * minor refactor * Update pytorch_lightning/core/memory.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> * make model size property * fix doctest * Update pytorch_lightning/core/memory.py Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> * remove explicit doctest from file * better docs * model precalculate size 1.0 mbs * better comment * Update tests/core/test_memory.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> * Update tests/core/test_memory.py Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> * merge _model_size into model_size property itself * minor comment fix * add feature to changelog * added precision test * isort * minor def name typo * remove monkeypath set env as boringmodel wont need any torch hub cache Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
cb58fde
commit db78422
Showing
3 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
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
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
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