I’m finetuning the vgg19_bn on my own dataset, and I faced the same problem too.
With the insructions above, I removed the .nv file by command
sudo rm -rf ~/.nv
However, when I run the gpu-version CNN, the error shows again. And I found the .nv file appeared again. And I changed the batch_size from 64 into 32, the code runed well. The same solution as above @ShawnGuo . Thasnks a lot. By a way, when the memory is not enough for the code, should it raise the error? Can it give a more accurate error infomation? @smth .