Traceback (most recent call last):


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

main(params)


 "main.py", line 339, in main

scores = evaluator.run_all_evals(trainer.epoch)


 "XXX/UnsupervisedMT/NMT/src/evaluator.py", line 260, in run_all_evals

self.eval_para(lang1, lang2, data_type, scores)


 "XXX/UnsupervisedMT/NMT/src/evaluator.py", line 154, in eval_para

decoded = self.decoder(encoded, sent2[:-1], lang2_id)


 "XXX/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__

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


 "XXX/UnsupervisedMT/NMT/src/model/transformer.py", line 227, in forward

incremental_state=incremental_state,


 "XXX/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__

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


 "/XXX/UnsupervisedMT/NMT/src/model/transformer.py", line 445, in forward

incremental_state=incremental_state, need_weights=False,


 "XXX/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__

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


 "/XXX/UnsupervisedMT/NMT/src/modules/multihead_attention.py", line 140, in forward

attn_weights = F.softmax(attn_weights, dim=-1)


 "XXX/pytorch/lib/python3.6/site-packages/torch/nn/functional.py", line 1188, in softmax

ret = input.softmax(dim)
RuntimeError: CUDA out of memory. Tried to allocate 5.24 GiB (GPU 0; 15.8

Traceback (most recent call last):

 "C:\Python33\lib\logging__init__.py", line 943, in emit

 "C:\Python33\lib\logging__init__.py", line 923, in flushOSError: [Errno 28] No space left on device