Is there a way to get numpy to free the memory used by the array? I can't just start del arraybecause the array is referenced elsewhere.
An example of why this matters and why I think it is safe:
def run():
arr = np.array(....)
arr2 = process(arr)
fit(arr2)
I can edit process, but not run. arrStores a lot of memory right now , which is no longer needed after startup process. I would like to remove the contents from arrfrom processafter creation arr2.
source
share