https://discuss.pytorch.org/t/not-using-multiprocessing-but-getting-cuda-error-re-forked-subprocess/54610/11
https://github.com/pytorch/pytorch/issues/40403%23issuecomment-731782611
https://discuss.pytorch.org/t/not-using-multiprocessing-but-getting-cuda-error-re-forked-subprocess/54610/11
https://github.com/pytorch/pytorch/issues/40403%23issuecomment-731782611
文章讨论了在不使用多进程的情况下,PyTorch用户遇到CUDA错误,特别是关于forkedsubprocess的问题。用户在论坛和GitHub上分享了他们的观察和解决方案,可能涉及到Python的forking行为以及与CUDA和GPU内存管理的交互。建议的解决办法包括使用torch.multiprocessing.set_start_method(spawn)或者避免在可能触发fork的代码路径中初始化CUDA。
2075

被折叠的 条评论
为什么被折叠?



