Same problem here. After laptop goes to sleep and wake up, I get this error after calling torch.cuda.current_device():
RuntimeError: cuda runtime error (30) : unknown error at 
/opt/conda/conda-bld/pytorch_1524590031827/work/aten/src/THC/THCGeneral.cpp:70

Ubuntu 18.04, Pytorch 0.4.1, cuda 9.2