mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
added multi-node proc 0 ip reading
This commit is contained in:
1 parent
e1823e0d1a
commit
77fb4441ab
1 file changed
+1
@@ -91,6 +91,7 @@ class Trainer(TrainerIO):
|
||||
# gpus come in as a string.
|
||||
# if gpus = -1 then use all available devices
|
||||
# otherwise, split the string using commas
|
||||
pdb.set_trace()
|
||||
if gpus is not None:
|
||||
if gpus == '-1':
|
||||
self.data_parallel_device_ids = torch.cuda.device_count()
|
||||
|
||||
Reference in new issue
Block a user