Skip to content

Commit fc96fd7

Browse files
instructions
1 parent 914a93e commit fc96fd7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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

36
Gives 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
1417
numpy
1518
tabulate
1619
tensorflow >= 2.0.0
@@ -20,6 +23,7 @@ Built and tested on `tensorflow == 2.3.1`
2023

2124
## Installation
2225

26+
using pip.
2327
```
2428
pip install model_profiler
2529
```
@@ -43,6 +47,8 @@ from profiler import model_profiler
4347

4448
Batch_size = 128
4549
profile = 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

0 commit comments

Comments
 (0)