Variables are deprecated since PyTorch 0.4 and you should use tensors now.
Autograd is able to track operations of tensors, if they require gradients, so there is no need to use the tensor vs. Variable split anymore.