mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
set dp as default backend
This commit is contained in:
@@ -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),
|
||||
})
|
||||
return output
|
||||
return loss_val
|
||||
|
||||
def validation_end(self, outputs):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user