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

Run demo--Cuda:out of memory #34

Open
594cp opened this issue Jun 25, 2019 · 2 comments
Open

Run demo--Cuda:out of memory #34

594cp opened this issue Jun 25, 2019 · 2 comments

Comments

@594cp
Copy link

594cp commented Jun 25, 2019

Hi, when I run the demo on two different computers, one has one GPU, another one has more than two GPU, but there is the same error. I check that GPU has enough memory.

RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1511304568725/work/torch/lib/THC/generic/THCStorage.cu:66

Dose anyone has the same problem?

@Four97
Copy link

Four97 commented Oct 21, 2020

I met the same problem ,have you solved it?

@Four97
Copy link

Four97 commented Oct 21, 2020

I got it. add "torch.no_grad()".
thanks anyway.

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