DefaultCPUAllocator: not enough memory: you tried to allocate 364742208 bytes. Buy new RAM

Viewed 7712

I am running a pytorch NLP model in python and I keep encountering the following strange error:

RuntimeError: [enforce fail at ..\c10\core\CPUAllocator.cpp:75] data. DefaultCPUAllocator: not enough 
memory: you tried to allocate 364742208 bytes. Buy new RAM!

This is strange considering I have 16GB of RAM and the allocation is only 0.3GB. So I fail to understand the memory error.

Any help on the above will be appreciated.

0 Answers
Related