Skip to content

Commit

Permalink
nemo.utils.get_summary returns a dictionary + prettyprint information…
Browse files Browse the repository at this point in the history
… now
  • Loading branch information
FrancescoConti committed Mar 26, 2021
1 parent 75e91b9 commit cd103c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def hook(module, input, output):
s += "----------------------------------------------------------------" + "\n"
if verbose:
logging.info(s)
return summary, s
return { 'dict': summary, 'prettyprint': s, 'biggest_activation': output_size, 'params_size': params_size }

def get_intermediate_activations(net, test_fn, *test_args, **test_kwargs):
l = len(list(net.named_modules()))
Expand Down

0 comments on commit cd103c2

Please sign in to comment.