Traceback (most recent call last):


 "tools/train.py", line 232, in <module>

main()


 "tools/train.py", line 226, in main

train()


 "tools/train.py", line 175, in train

loss_pre = criteria_pre(logits, lb)


 "/home/liyanzhou/anaconda3/envs/py36_torch16/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl

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


 "./lib/ohem_ce_loss.py", line 43, in forward

loss_hard = loss[loss > self.thresh]
RuntimeError: CUDA error: an illegal memory access was encountered

Traceback (most recent call last):


 "<ipython-input-8-d7e328037dc8>", line 396, in obtain_option_chain

self.connection.req_underlying()


 "<ipython-input-1-8babd49f3586>", line 82, in req_underlying

self.sess.qualifyContracts(self.underlying) # fills in the missing fields, inplace


 "/anaconda3/envs/others/lib/python3.6/site-packages/ib_insync/ib.py", line 457, in qualifyContracts

return self._run(self.qualifyContractsAsync(*contracts))


 "/anaconda3/envs/others/lib/python3.6/site-packages/ib_insync/ib.py", line 236, in _run

return util.run(*awaitables, timeout=self.RequestTimeout)


 "/anaconda3/envs/others/lib/python3.6/site-packages/ib_insync/util.py", line 229, in run

loop = asyncio.get_event_loop()


 "/anaconda3/envs/others/lib/python3.6/asyncio/events.py", line 694, in get_event_loop

return get_event_loop_policy().get_event_loop()


 "/anaconda3/envs/others/lib/python3.6/asyncio/events.py", line 602, in get_event_loop

% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-5'.
