mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-26 13:00:58 +08:00
added arg docs
This commit is contained in:
1 parent
c4971e8432
commit
da842c0cd6
1 file changed
+2
-2
@@ -86,7 +86,7 @@ class LightningTemplateModel(LightningModule):
|
||||
output = OrderedDict({
|
||||
'loss': loss_val
|
||||
})
|
||||
return output
|
||||
return loss_val
|
||||
|
||||
def validation_step(self, data_batch, batch_i):
|
||||
"""
|
||||
@@ -108,7 +108,7 @@ class LightningTemplateModel(LightningModule):
|
||||
'val_loss': loss_val,
|
||||
'val_acc': torch.tensor(val_acc).cuda(loss_val.device.index),
|
||||
})
|
||||
return output
|
||||
return loss_val
|
||||
|
||||
def validation_end(self, outputs):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user