codertimo / BERT-pytorch

Google AI 2018 BERT pytorch implementation
Apache License 2.0
6.09k stars 1.29k forks source link

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

Open moomooda opened 4 years ago

moomooda commented 4 years ago

<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?

YuhaoTan2 commented 2 years ago

Set num_worker to 0 may work.