Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Memory Leaky with from torchdiffeq import odeint #247

Open
wangmiaowei opened this issue Feb 26, 2024 · 1 comment
Open

Bug: Memory Leaky with from torchdiffeq import odeint #247

wangmiaowei opened this issue Feb 26, 2024 · 1 comment

Comments

@wangmiaowei
Copy link

When I use autograd, I found there is memory leak bug. Even with

gc.collect()
torch.cuda.empty_cache() 

The allocated memory is still growing with the increments of iteration.

logging.info("memory_allcoated(MB) {}".format(torch.cuda.memory_allocated()/1048576))

I believe you have noticed the similar bug, could you provide me some solutions?

@rtqichen
Copy link
Owner

Do you have a minimal working example, and your PyTorch version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants