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

torch.cuda.empty_cache() 不能释放显存 #130

Open
smoftsky opened this issue Feb 12, 2022 · 0 comments
Open

torch.cuda.empty_cache() 不能释放显存 #130

smoftsky opened this issue Feb 12, 2022 · 0 comments

Comments

@smoftsky
Copy link

用了torch.cuda.empty_cache()后,在控制台nvidia-smi查看显存没有释放,在Ipython控制台继续添加网络后显存继续上升。是我对相关的内存机制理解有问题,还是是因为我用的是spyder而和spyder运行特性有关呢?求助大佬。

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

1 participant