Machine restarted and now PyTorch gives CUDA error

For reference, there is a longer discussion about this problem here. This link may also help