Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GSAUC3 authored Aug 8, 2022
1 parent 5d88be0 commit fca30a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ Total Non-Trainable parameters 0
Total Trainable parameters 61,100,840
```

### Calculating the number of specific layer, or layer frequencies
```python
from pytorchsummary import get_num_layers(model)
from pytorchsummary import get_num_layers
print(get_num_layers(m)) # alexnet model
```
Output:
Expand All @@ -142,4 +143,4 @@ Output:
'AdaptiveAvgPool2d': 1,
'Dropout': 2,
'Linear': 3}
```
```

0 comments on commit fca30a7

Please sign in to comment.