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

Fix "RuntimeError: CUDA Error: out of memory" #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

icekang
Copy link

@icekang icekang commented Nov 15, 2020

Problem

According to this issue
I also forked this repo and tried running on my Colab project. The same problem arose: RuntimeError: CUDA Error: out of memory.

Solution

As far as my knowledge, the problem happened because some section did not require grad yet still did anyway. Thus, with no_grad() should be presented.

@ghost
Copy link

ghost commented Jul 3, 2021

@icekang Thank you!! Changes worked fine and saved me debugging time.

@icekang
Copy link
Author

icekang commented Jul 10, 2021

you are welcome :)
if it works, please accept my pull request @arnoweng

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

Successfully merging this pull request may close these issues.

1 participant