直接整代码吧
import torch
model = xx # 确定好你的model
model = torch.nn.DataParallel(model.cuda(), device_ids=[0,1,2])
#loss
loss=</
直接整代码吧
import torch
model = xx # 确定好你的model
model = torch.nn.DataParallel(model.cuda(), device_ids=[0,1,2])
#loss
loss=</