mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
scaled batch size
This commit is contained in:
@@ -163,7 +163,7 @@ class LightningTemplateModel(LightningModule):
|
||||
batch_size = self.hparams.batch_size
|
||||
|
||||
try:
|
||||
if self.hparams.nb_gpu_nodes > 1:
|
||||
if self.on_gpu:
|
||||
train_sampler = DistributedSampler(dataset, num_replicas=self.trainer.world_size, rank=self.trainer.proc_rank)
|
||||
|
||||
# scale batch size
|
||||
|
||||
Reference in New Issue
Block a user