📜  RuntimeError:cuda 运行时错误(711):对等映射资源在 pytorch aten src THC THCGeneral.cpp:139 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.669000             🧑  作者: Mango

代码示例1
#apperently there is a limit of 8 for number of GPU that can be used
#so if you have more than 8 you will have to specify only 8
model = nn.DataParallel(model, device_ids=[0, 1, 2, 3, 4, 5 ,6 ,7])