When i use these code to train this network with multi GPU:
if torch.cuda.device_count() > 1:
model = torch.nn.DataParallel(model)
model = model.cuda()
It send me this error:
RuntimeError: Caught RuntimeError in replica 0 on device 0.
Is there any one who can help me? Thank you very much!!!!!!!!!!!1