scaled batch size
This commit is contained in:
parent
2b16c75499
commit
9d35b5b4f7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue