I run the model on the CPU on a machine with 32GB of ram and I keep getting “a not enough memory error”:
RuntimeError: $ Torch: not enough memory: you tried to allocate 23GB. Buy new RAM! at /opt/conda/conda-bld/pytorch_1503970438496/work/torch/lib/TH/THGeneral.c:270
Monitoring the memory looks as if pytorch already allocated 23GB before throwing the OOM error. Let along that the machine I am running this on has 32GB of RAM available. (If you see the graph in my previous post it shows the memory allocated on the machine at the time of the OOM error)
Unfortunately I’d love to run the CNN on my GPU but the memory is a more important factor there. I have two GTX 1070 with 8GB ram each but I haven’t figured if I can use the memory of both of them in the same training