mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
moved cuda flags inside trainer
This commit is contained in:
1 parent
2172280d8d
commit
79ca5f6265
1 file changed
-1
@@ -90,7 +90,6 @@ 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 = list(range(0, torch.cuda.device_count()))
|
||||
|
||||
Reference in new issue
Block a user