Providing the error here :
OutOfMemoryError: CUDA out of memory. Tried to allocate 1.56 GiB. GPU 0 has a total capacity of 14.75 GiB of which 13.06 MiB is free. Process 2049 has 14.73 GiB memory in use. Of the allocated memory 14.09 GiB is allocated by PyTorch, and 525.32 MiB is reserved by PyTorch but unallocated.
For this kind of out of memory error scenario, can killing the process solve this issue ?
I tried running the ps command but I couldn't see the mentioned process in the list of processes. So I tried running kill -9 <PID> but it says that the process is not found