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

Unnecessary GPU memory usage in PyTorch Implementation #6

Open
tinyRattar opened this issue Mar 22, 2019 · 1 comment
Open

Unnecessary GPU memory usage in PyTorch Implementation #6

tinyRattar opened this issue Mar 22, 2019 · 1 comment

Comments

@tinyRattar
Copy link

I noticed that in main_crnn.py, line 167 :
validate_err += err
as err is a Varaible on GPU, such usage will take extra GPU memory (with PyTorch 1.0.1), maybe you should use err.item() instead like line 147.
line 188 has the same problem as well

@Alxemade
Copy link

Thanks!

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