Skip to content

Commit

Permalink
Update flops_counter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida authored Mar 18, 2021
1 parent 6766b17 commit e9a8f3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mmcv/cnn/utils/flops_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ def get_model_complexity_info(model,
flush=False,
ost=sys.stdout):
"""Get complexity information of a model.
This method can calculate FLOPs
and parameter counts of a model with corresponding input shape. It can also
print complexity information for each layer in a model.
This method can calculate FLOPs and parameter counts of a model with
corresponding input shape. It can also print complexity information for
each layer in a model.
Supported layers are listed as below:
- Convolutions: ``nn.Conv1d``, ``nn.Conv2d``, ``nn.Conv3d``.
- Activations: ``nn.ReLU``, ``nn.PReLU``, ``nn.ELU``, ``nn.LeakyReLU``,
Expand Down

0 comments on commit e9a8f3c

Please sign in to comment.