This issue sounds like a Xorg/Windows and potentially NVIDIA driver issue and doesn’t seem to be Pytorch-specific, so you might get a better and faster answer in an NVIDIA support board or e.g. StackOverflow.