added sample input for summary
This commit is contained in:
parent
77a7f3e33e
commit
8db8cd2539
|
@ -41,7 +41,7 @@ class ModelSummary(object):
|
|||
if self.model.trainer.use_amp:
|
||||
input_ = input_.half()
|
||||
|
||||
with torch.no_grad:
|
||||
with torch.no_grad():
|
||||
|
||||
for i in range(1, len(mods)):
|
||||
m = mods[i]
|
||||
|
|
Loading…
Reference in New Issue