Windows 多进程引发 DataLoader 卡在首个 batch 的排查与修复

在 Windows 平台使用 PyTorch 的 DataLoader 时,经常遇到程序启动之后一直卡死、无法吐出第一个 batch 的现象,这个问题绝大多数