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[4608,1024] #6

Open
jeremy-myers opened this issue May 2, 2018 · 1 comment

Comments

@jeremy-myers
Copy link

When I evaluate the sample, I attempt to pass the argument
--batch_size = N
for a range of N, but I receive this error
2018-05-01 22:46:06.579010: W tensorflow/core/framework/op_kernel.cc:1158] Resource exhausted: OOM when allocating tensor with shape[3,3,128,256]

In my opinion, it doesn't seem like the code is responsive to my argument. What is the correct way to change the batch size for BNN_cifar10?

@cw-plus
Copy link

cw-plus commented May 18, 2018

In the code:def train(model, data, batch_size=128, learning_rate=FLAGS.learning_rate, log_dir='./log', checkpoint_dir='./checkpoint', num_epochs=-1):
seems batchsize not get from

--batch_size = N

So, I recommend you change it in train function.

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