diff --git a/docs/source/examples/example_model.py b/docs/source/examples/example_model.py index e7caed4bef..fa796f84eb 100644 --- a/docs/source/examples/example_model.py +++ b/docs/source/examples/example_model.py @@ -77,7 +77,7 @@ class ExampleModel(RootModule): output = OrderedDict({ 'loss_val': loss_val, }) - return output + return torch.tensor(4) def validation_step(self, data_batch, batch_i): """ @@ -100,7 +100,7 @@ class ExampleModel(RootModule): 'loss_val': loss_val, 'val_acc': val_acc, }) - return output + return torch.tensor(4) def validation_end(self, outputs):