Debugger times out at “Collecting data…”

后端 未结 6 1668
梦如初夏
梦如初夏 2021-01-31 08:04

I am debugging a Python (3.5) program with PyCharm (PyCharm Community Edition 2016.2.2 ; Build #PC-162.1812.1, built on August 16, 2016 ; JRE: 1.8.0_76-releas

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 08:56

    I met the same problem when I try to run some Deep Learning scripts written by PyTorch (PyCharm 2019.3).

    I finally figured out that the problem is I set num_workers in DataLoader to a large value (in my case 20).

    So, in the debug mode, I would suggest to set num_workers to 1.

提交回复
热议问题