When I run my code, I get this runtime error below:
CUDA out of memory. Tried to allocate 88.00 MiB (GPU 0; 8.00 GiB total capacity; 6.04 GiB already allocated; 0 bytes free; 6.17 GiB reserved in total by PyTorch)
I don’t understand why it says 0 bytes free;
Maybe I should have at least 6.17 - 6.04 = 0.13 GiB free?
I’m afraid if it’s not really a memory shortage problem.