File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
2+ <img alt =" Keras " src =" https://img.shields.io/badge/Keras%20-%23D00000.svg?&style=for-the-badge&logo=Keras&logoColor=white " /> <img alt =" TensorFlow " src =" https://img.shields.io/badge/TensorFlow%20-%23FF6F00.svg?&style=for-the-badge&logo=TensorFlow&logoColor=white " />
3+
14# Tensorflow/ Keras Model Profiler
25
36Gives you some basic but important information about your ` tf ` or ` keras ` model like,
@@ -10,7 +13,7 @@ Gives you some basic but important information about your `tf` or `keras` model
1013## Dependencies
1114
1215```
13- python 3
16+ python >= 3.6
1417numpy
1518tabulate
1619tensorflow >= 2.0.0
@@ -20,6 +23,7 @@ Built and tested on `tensorflow == 2.3.1`
2023
2124## Installation
2225
26+ using pip.
2327```
2428pip install model_profiler
2529```
@@ -43,6 +47,8 @@ from profiler import model_profiler
4347
4448Batch_size = 128
4549profile = model_profiler(model, Batch_size)
50+
51+ print (profile)
4652```
4753` Batch_size ` have effect on ` model ` memory usage so GPU memory usage need ` batch_size ` , it's default value if ` 1 ` .
4854
You can’t perform that action at this time.
0 commit comments