Traceback (most recent call last):


 "/home/sandip/.local/lib/python2.7/site-packages/twisted/web/server.py", line 198, in process

self.render(resrc)


 "/home/sandip/.local/lib/python2.7/site-packages/twisted/web/server.py", line 258, in render

body = resrc.render(self)


 "/home/sandip/.local/lib/python2.7/site-packages/twisted/web/resource.py", line 250, in render

return m(request)


 "/home/sandip/tudelft/tribler/Tribler/Core/Modules/restapi/debug_endpoint.py", line 311, in render_GET

return json.dumps({"cpu_history": self.session.lm.resource_monitor.get_cpu_history_dict()})
AttributeError: 'NoneType' object has no attribute 'get_cpu_history_dict'

Traceback (most recent call last):


 "/home/nikola/code/pytorch-examples/examples/OpenNMT/translate.py", line 116, in <module>

main()


 "/home/nikola/code/pytorch-examples/examples/OpenNMT/translate.py", line 77, in main

predBatch, predScore, goldScore = translator.translate(srcBatch, tgtBatch)


 "/home/nikola/code/pytorch-examples/examples/OpenNMT/onmt/Translator.py", line 195, in translate

pred, predScore, attn, goldScore = self.translateBatch(batch)


 "/home/nikola/code/pytorch-examples/examples/OpenNMT/onmt/Translator.py", line 60, in translateBatch

encStates, context_t = self.model.encoder(srcBatch_t, hidden=encStates)


 "/home/nikola/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 235, in __getattr__

return object.__getattribute__(self, name)
AttributeError: 'DataParallel' object has no attribute 'encoder'
