I was re installed pytorch as you said and unistalled pytorch-gpu then when I am checking torch version in code its giving me above error for version module.
con’t import name variable from torch.autograd