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

刚开始推理时,GPU内存占用持续增加 #176

Open
lrjun6188 opened this issue Feb 18, 2022 · 0 comments
Open

刚开始推理时,GPU内存占用持续增加 #176

lrjun6188 opened this issue Feb 18, 2022 · 0 comments

Comments

@lrjun6188
Copy link

我的batch_size=4,GPU内存为6G.
在前向推理过程中,每次到了卷积层运行时,GPU内存就会增加,0.3G左右,调试发现,推理到第49层,GPU内存就爆了。
image
也就是在执行x=module(x)时就会增加GPU的内存占用,请问,有哪位大神能解释下原因

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