The volatile flag is deprecated. In the latest stable release (0.4.0) you should use a context manager:
with torch.no_grad():
    # Your eval code

Have a look at the website 238 for install instructions.
You can find the migration guide here 185.