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

Out of memory when using resnet #8

Open
Willy0919 opened this issue Feb 25, 2019 · 2 comments
Open

Out of memory when using resnet #8

Willy0919 opened this issue Feb 25, 2019 · 2 comments

Comments

@Willy0919
Copy link

When I used resnet20 on cifar10, after several iter, it raise the error:
grads = torch.autograd.grad(loss_meta, meta_net.params(), create_graph=True)
File "/usr/local/lib/python3.5/dist-packages/torch/autograd/init.py", line 145, in grad
inputs, allow_unused)
RuntimeError: CUDA out of memory. Tried to allocate 14.50 MiB (GPU 0; 10.92 GiB total capacity; 10.04 GiB already allocated; 3.50 MiB free; 127.91 MiB cached)

but baseline runs normally.

@hansbu
Copy link

hansbu commented Mar 1, 2019

what is the input size of your resnet20?

@Vickeyhw
Copy link

Vickeyhw commented Aug 7, 2020

I also have the same problem when I use resnet32 on cifar100. Have you solved this problem?

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

3 participants