Yes, Variables are deprecated in newer PyTorch versions.
Instead of setting volatile=True, you would now have to wrap your code in a torch.no_grad() block:
with torch.no_grad():
    x = torch.randn(1, 3, 224, 224)
    output = model(x)

This will make sure to avoid storing the intermediate activations (same as with volatile=True).