Traceback (most recent call last):


 "/private/home/louismartin/miniconda3/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap

self.run()


 "/private/home/louismartin/ParlAI/parlai/core/worlds.py", line 757, in run

world = self.shared['world_class'](self.opt, None, self.shared)


 "/private/home/louismartin/ParlAI/parlai/core/worlds.py", line 235, in __init__

self.agents = create_agents_from_shared(shared['agents'])


 "/private/home/louismartin/ParlAI/parlai/core/agents.py", line 523, in create_agents_from_shared

agent = create_agent_from_shared(shared_agent)


 "/private/home/louismartin/ParlAI/parlai/core/agents.py", line 509, in create_agent_from_shared

a = shared_agent['class'](opt, shared_agent)


 "/private/home/louismartin/ParlAI/parlai/agents/memnn/memnn.py", line 70, in __init__

super().__init__(opt, shared)


 "/private/home/louismartin/ParlAI/parlai/core/torch_ranker_agent.py", line 81, in __init__

self.model.cuda()


 "/private/home/louismartin/miniconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 260, in cuda

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


 "/private/home/louismartin/miniconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 187, in _apply

module._apply(fn)


 "/private/home/louismartin/miniconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 193, in _apply

param.data = fn(param.data)


 "/private/home/louismartin/miniconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 260, in <lambda>

return self._apply(lambda t: t.cuda(device))
RuntimeError: CUDA error: initialization error

Traceback (most recent call last):


 "trainval_net.py", line 322, in <module>

rois_label = fasterRCNN(im_data, im_info, gt_boxes, num_boxes)


 "/home/lb/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 325, in __call__

result = self.forward(*input, **kwargs)


 "/home/lb/faster-rcnn.pytorch/lib/model/faster_rcnn/faster_rcnn.py", line 50, in forward

rois, rpn_loss_cls, rpn_loss_bbox = self.RCNN_rpn(base_feat, im_info, gt_boxes, num_boxes)


 "/home/lb/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 325, in __call__

result = self.forward(*input, **kwargs)


 "/home/lb/faster-rcnn.pytorch/lib/model/rpn/rpn.py", line 78, in forward

im_info, cfg_key))


 "/home/lb/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 325, in __call__

result = self.forward(*input, **kwargs)


 "/home/lb/faster-rcnn.pytorch/lib/model/rpn/proposal_layer.py", line 149, in forward

keep_idx_i = keep_idx_i.long().view(-1)


 "/home/lb/.local/lib/python2.7/site-packages/torch/tensor.py", line 51, in long

return self.type(type(self).__module__ + '.LongTensor')


 "/home/lb/.local/lib/python2.7/site-packages/torch/cuda/__init__.py", line 370, in type

return super(_CudaBase, self).type(*args, **kwargs)


 "/home/lb/.local/lib/python2.7/site-packages/torch/_utils.py", line 38, in _type

return new_type(self.size()).copy_(self, async)
RuntimeError: cuda runtime error (8) : invalid device function at /pytorch/torch/lib/THC/THCTensorCopy.cu:204
