BERT-pytorch icon indicating copy to clipboard operation
BERT-pytorch copied to clipboard

Did you have tried to use ipdb to set breakpoint in __get__item__, which is a funtion from BERTDataset

Open moomooda opened this issue 6 years ago • 1 comments

<img width="513" alt="微信截图_20191021121809" src="https://user-images.githubusercontent.com/23332644/67176519-e6bd8900-f3fc-11e9-9ea3-c522edcc09bc.pn 运行 python -m ipdb test_bert.py 后程序会直接卡住,貌似是多进程的缘故,5个num_worker?

moomooda avatar Oct 21 '19 04:10 moomooda

Set num_worker to 0 may work.

YuhaoTan2 avatar Aug 30 '21 03:08 YuhaoTan2