Hey @jtremblay and @meijieru
I am trying to replicate this issue, but I cant.
Can either of you give me a script to reproduce it?
Here is the script I used, along with it’s output:
import torch
from torch.autograd import Variable
import torch.nn as nn
import platform

print('Python version: ' +  platform.python_version())
print(torch.__version__)


print('Trying out device_ids=None')

model = nn.Linear(20, 30).cuda()
net = torch.nn.DataParallel(model, device_ids=None)


inp = Variable(torch.randn(128,20).cuda(), requires_grad=True)
out = net(inp)
out.backward(torch.ones(out.size()).cuda())

print('Passed')

Output:
Python version: 3.6.0
0.1.11+b13b701
Trying out device_ids=None
Passed