removed print statements

This commit is contained in:
William Falcon 2019-07-14 18:12:41 -04:00
parent 50246a5066
commit ad24bef1c9
1 changed files with 0 additions and 4 deletions

View File

@ -82,7 +82,6 @@ class Trainer(TrainerIO):
self.print_nan_grads = print_nan_grads
self.data_parallel_device_ids = None
self.world_size = 1
print('-'*100)
# gpus come in as a string.
# if gpus = -1 then use all available devices
@ -297,17 +296,14 @@ class Trainer(TrainerIO):
# when using gpus, first thing we do is spawn a new process between each worker
# multi-gpu and multi-nodes
if self.data_parallel:
print('DP train')
self.experiment = self.experiment.get_meta_copy()
mp.spawn(self.dp_train, nprocs=len(self.data_parallel_device_ids), args=(model, ))
# treat 1 gpu as a different case to avoid nccl bugs
elif len(self.data_parallel_device_ids) == 1:
print('1 gpu train')
self.single_gpu_train(model)
else:
print('NO GPU')
# CHOOSE OPTIMIZER
# filter out the weights that were done on gpu so we can load on good old cpus
self.optimizers = model.configure_optimizers()