I have used numba and tensorflow in python to calculate a 3-d loop problem.
Firstly I used numba several times to prepare the input data, and everything was fine. Then I used tensorflow to de deep learning, and everything was fine.
Next, when I went back to do the above procedure for the second time, i.e. to use numba, it gave me an error CUDA_ERROR_OUT_OF_MEMORY.
If I killed the thread and restarted the kernel, I could run it but still failed at the second run.
It seems that the problem is in tensorflow, but I don't know. I have added numba.cuda.defer_cleanup() at the beginning and ending of the code but it didn't help much.
Does anyone know how to solve this issue?