mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
added sample input for summary
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user