It seems to matter if your dummy variable is differentiable or not. If I instatiate using torch.randn or Variable with requires_grad=True the above error disappears.
Now I have this other known problem 74