diff --git a/pytorch_lightning/examples/new_project_templates/lightning_module_template.py b/pytorch_lightning/examples/new_project_templates/lightning_module_template.py index fc28c55d6d..e4ca0c8fad 100644 --- a/pytorch_lightning/examples/new_project_templates/lightning_module_template.py +++ b/pytorch_lightning/examples/new_project_templates/lightning_module_template.py @@ -28,6 +28,8 @@ class LightningTemplateModel(LightningModule): self.batch_size = hparams.batch_size + self.example_input_array = torch.rand(5, 3 * 28 * 28) + # build model self.__build_model()