Open jbmaxwell opened 6 years ago
Oh, okay, seems like a false alarm—rebooting my ubuntu box seems to have solved the problem (also learned about clearing GPU memory in the meantime)!
Could you tell me your config? My config: cuda:9.0 pytorch:0.4.0 torchvision:0.2.1 but there are some warning and bug in my program, I have also get"Out of memory" Thank you very much
I'm actually still on cuda 8.0.61, with pytorch 0.3.1—I haven't run this for a while. But for me the solution was just a reboot and then adjusting the batch_size to the max possible before the memory error. (I think I also reduced my input size, though I realize that may not be possible in your case.)
I tried batch_size=1, but no difference. I haven't attempted to calculate the actual memory requirement, but would you expect this to run on a 6GB GPU?