Traceback (most recent call last):


 "main.py", line 144, in <module>

algo.train()


 "/backup1/lingboyang/StackGANv2/code/trainer.py", line 666, in train

self.inception_model, start_count = load_network(self.gpus)


 "/backup1/lingboyang/StackGANv2/code/trainer.py", line 126, in load_network

netsD[i] = torch.nn.DataParallel(netsD[i], device_ids=gpus)


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 59, in __init__

self.module.cuda(device_ids[0])


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 216, in cuda

return self._apply(lambda t: t.cuda(device))


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 146, in _apply

module._apply(fn)


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 146, in _apply

module._apply(fn)


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 152, in _apply

param.data = fn(param.data)


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 216, in <lambda>

return self._apply(lambda t: t.cuda(device))


 "/home/vcl/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/_utils.py", line 69, in _cuda

return new_type(self.size()).copy_(self, async)
RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1513368888240/work/torch/lib/THC/generic/THCStorage.cu:58

Traceback (most recent call last):


 "/usr/lib/python3.5/concurrent/futures/_base.py", line 297, in _invoke_callbacks

callback(self)


 "/usr/lib/python3.5/asyncio/futures.py", line 463, in _call_set_state

dest_loop.call_soon_threadsafe(_set_state, destination, source)


 "/usr/lib/python3.5/asyncio/base_events.py", line 618, in call_soon_threadsafe

self._check_closed()


 "/usr/lib/python3.5/asyncio/base_events.py", line 357, in _check_closed

raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed