Hi All,
I was wondering if there are any tips or tricks when trying to find CPU memory leaks? I’m currently running a model, and every epoch the RAM usage (as calculated via psutil.Process(os.getpid()).memory_info()[0]/(2.**30) ) increases by about 0.2GB on average. And I’m  really not sure where this leak is coming from.
Are there any tips or tricks for finding memory leaks? The only thing that comes to mind for me is enabling  torch.autograd.set_detect_anomaly(True) at the top of my script
Any help would be appreciated!