Using variables in PyTorch