Traceback (most recent call last):


 "../asyncserf/asyncserf/client.py", line 115, in _run


 "/usr/lib/python3/dist-packages/anyio/_backends/_trio.py", line 49, in __aexit__


 "/usr/lib/python3/dist-packages/trio/_core/_ki.py", line 165, in wrapper


 "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 199, in __exit__


 "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 367, in _close


 "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1645, in current_task
RuntimeError: must be called from async context

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
