You can remove the usage of Variables completely.
The equivalent to volatile=True is the with torch.no_grad() block, so you should use it if you want to save memory and don’t want to calculate gradients for these operations.