Unverified Commit 39d9a8d9 authored by BasicCoder's avatar BasicCoder Committed by GitHub
Browse files

add input and output shape information (#4539)

parent e483aa01
......@@ -293,6 +293,8 @@ class ModelProfiler:
'Name',
'Type',
'Weight Shape',
'Input Size',
'Output Size',
'FLOPs',
'#Params',
]
......@@ -307,6 +309,8 @@ class ModelProfiler:
result['name'],
result['module_type'],
str(result['weight_shape']),
result['input_size'],
result['output_size'],
flops_count,
result['params'],
]
......@@ -314,6 +318,7 @@ class ModelProfiler:
if has_multi_use:
row_values.append(name_counter[result['name']])
table.add_row(row_values)
table.align["Name"] = "l"
return table
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment