From 9d35b5b4f75815cb4f80b18646f25ee4a38a5615 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Mon, 8 Jul 2019 19:57:06 -0400 Subject: [PATCH] scaled batch size --- examples/new_project_templates/lightning_module_template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/new_project_templates/lightning_module_template.py b/examples/new_project_templates/lightning_module_template.py index 994c162121..359c85a8c5 100644 --- a/examples/new_project_templates/lightning_module_template.py +++ b/examples/new_project_templates/lightning_module_template.py @@ -164,6 +164,7 @@ class LightningTemplateModel(LightningModule): try: if self.on_gpu: + print('distributing') train_sampler = DistributedSampler(dataset, rank=self.trainer.proc_rank) batch_size = batch_size // self.trainer.world_size # scale batch size except Exception as e: