Releasing memory of huge numpy array in IPython

后端 未结 1 555
既然无缘
既然无缘 2020-12-23 13:44

UPDATE:- This problem solved itself after a machine reboot. Not yet able to figure out why this error was happening before.

I have a function that loads a h

相关标签:
1条回答
  • 2020-12-23 13:53

    Are you looking at the value? IPython caches output variables as e.g. Out[8], so if you examine it, it will be kept in memory.

    You can do %xdel testcube to delete the variable and remove it from IPython's cache. Alternatively, %reset out or %reset array will clear either all your output history, or only references to numpy arrays.

    0 讨论(0)
提交回复
热议问题