Bilinear-CNN-TensorFlow icon indicating copy to clipboard operation
Bilinear-CNN-TensorFlow copied to clipboard

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

Open zhenyangGao opened this issue 5 years ago • 1 comments

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 avatar Apr 04 '19 01:04 zhenyangGao

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.

zhenyangGao avatar Apr 04 '19 06:04 zhenyangGao