Hello,
I made an attempt to create a CNN with PyTorch based on Kim et al Convolutional Neural Networks for Sentence Classification 8.
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

memory.png1521×230 25.2 KB

It indeed looks as if 23GB are being allocated but I don’t understand why I am getting a out of memory error.
On a side note: Is there a glove - embedding layer howto available anywhere? I need to verify what I did is correct since I am new on the topic