mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-03 12:50:15 +08:00
added arg docs
This commit is contained in:
1 parent
b1041220ac
commit
2ca0864ce8
2 files changed
+1
-1
No files matched your search
@@ -116,7 +116,6 @@ class LightningTemplateModel(LightningModule):
|
||||
:param outputs: list of individual outputs of each validation step
|
||||
:return:
|
||||
"""
|
||||
print(outputs)
|
||||
val_loss_mean = 0
|
||||
val_acc_mean = 0
|
||||
for output in outputs:
|
||||
|
||||
@@ -29,6 +29,7 @@ except ModuleNotFoundError:
|
||||
|
||||
|
||||
def reduce_distributed_output(output, nb_gpus):
|
||||
pdb.set_trace()
|
||||
if nb_gpus <= 1 or type(output) is torch.Tensor:
|
||||
return output
|
||||
|
||||
|
||||
Reference in new issue
Block a user