Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
airaria committed Mar 23, 2020
1 parent 8761a41 commit d0eeeb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/textbrewer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def display_parameters(model,max_level=None):
Args:
model (torch.nn.Module or dict): the model to be inspected.
max_level (int or None): The max level to display. If ``max_level==None``, show all the levels.
Returns:
A formatted string and a :class:`~textbrewer.utils.LayerNode` object representing the model.
"""
if isinstance(model,torch.nn.Module):
state_dict = model.state_dict()
Expand Down

0 comments on commit d0eeeb2

Please sign in to comment.