mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-26 13:00:58 +08:00
scaled batch size
This commit is contained in:
1 parent
971a6c4184
commit
25dbd7a936
1 file changed
+1
-1
@@ -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