Dropout has no effect in evaluation mode, i.e. training=False. And you should wrap the tensor in autograd.Variable when invoking such autograd functions.
The error message is indeed confusing, I have submitted an issue on this at https://github.com/pytorch/pytorch/issues/3785 26