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

Resource exhausted: OOM when allocating tensor with shape[2] and type int32 on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc #37

Open
zhenyangGao opened this issue Apr 4, 2019 · 1 comment

Comments

@zhenyangGao
Copy link

When I ran bcnn_finetune.py, an error occurred: Resource exhausted: OOM when allocating tensor with shape [2] and type int32 on/job: localhost/replica: 0/task: 0/device: GPU: 0 by allocator GPU_0_bfc. It means that there is not enough memory in the gpu. I use 1080TI, 11GB RAM. Is there not enough RAM? How should I solve it? Do I need more RAM? I found a solution to reduce batch_size. Can you help me? Thank you very much.

@zhenyangGao
Copy link
Author

I changed the input picture to 224*224, batch_size=20, and the program worked fine. If you do not change the size of the input image, my batch_size must be less than 5. It may not be enough memory, if you encounter the same problem, I hope to help you.

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

1 participant