RuntimeError: cuda runtime error (46) : all CUDA-capable devices are busy or unavailable

cuda version 8.0
pytorch 0.4
Gpu Memory available 8GB

How can i solve this


After resetting my GPU this error didn’t appear again.:grinning:

Edit: In my case although GPU memory was available but GPU cores were busy with some other process. Hence i got the above error.

How do I reset the gpu