mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
working on single gpu init speed
This commit is contained in:
@@ -323,7 +323,7 @@ class Trainer(TrainerIO):
|
||||
self.__run_pretrain_routine(model)
|
||||
|
||||
def single_gpu_train(self, model):
|
||||
torch.cuda.set_device(0)
|
||||
# torch.cuda.set_device(0)
|
||||
model.cuda(0)
|
||||
|
||||
# CHOOSE OPTIMIZER
|
||||
|
||||
Reference in New Issue
Block a user