• Releasing the memory occupied by tensorflow
from numba import cuda 
device = cuda.get_current_device()
device.reset()