mirror of
https://github.com/wassname/torchsummaryX.git
synced 2026-06-27 19:33:18 +08:00
don't print nans
This commit is contained in:
@@ -95,7 +95,7 @@ def summary(model, x, *args, **kwargs):
|
||||
df = df[['Kernel Shape', 'Output Shape', 'Params (K)', 'Mult-Adds (M)']]
|
||||
|
||||
print("="*100)
|
||||
print(df)
|
||||
print(df.replace(np.nan, '-')
|
||||
print("="*100)
|
||||
print(df.sum())
|
||||
print("="*100)
|
||||
|
||||
Reference in New Issue
Block a user