mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
moved cuda flags inside trainer
This commit is contained in:
@@ -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