added sample input for summary
This commit is contained in:
parent
7c3786aa52
commit
3a86e0fc6c
|
@ -121,7 +121,7 @@ class ModelSummary(object):
|
|||
df['Type'] = self.layer_types
|
||||
df['Params'] = self.param_nums
|
||||
|
||||
if self.model.example_input_array:
|
||||
if self.model.example_input_array is not None:
|
||||
df.columns.extend(['In_sizes', 'Out_sizes'])
|
||||
df['In_sizes'] = self.in_sizes
|
||||
df['Out_sizes'] = self.out_sizes
|
||||
|
@ -134,7 +134,7 @@ class ModelSummary(object):
|
|||
self.get_parameter_sizes()
|
||||
self.get_parameter_nums()
|
||||
|
||||
if self.model.example_input_array:
|
||||
if self.model.example_input_array is not None:
|
||||
self.get_variable_sizes()
|
||||
self.make_summary()
|
||||
|
||||
|
|
Loading…
Reference in New Issue