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

1.电脑有两个GPU 0和1,如何改代码使它使用GPU1呀。2.CUDA out of memory这个问题是因为什么呀 #92

Open
appreciatehxy opened this issue Mar 20, 2024 · 1 comment

Comments

@appreciatehxy
Copy link

第二个问题:RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 2.06 GiB already allocated; 0 bytes free; 2.29 GiB reserved in total by PyTorch)
batch_size我已经改成了4,但还是报错唉

@Fafa-DL
Copy link
Owner

Fafa-DL commented Mar 22, 2024

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