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

ensorflow.python.framework.errors_impl.InvalidArgumentError: Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero..' #2

Open
cchantra opened this issue Feb 21, 2018 · 1 comment

Comments

@cchantra
Copy link

I got this error when I retrain the network with my data set.

'tensorflow.python.framework.errors_impl.InvalidArgumentError: Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero..'

I use a small data set of 525 and class_num is 6. How to modify the number of iterations and the 50,0000 value in the code? (In SE_Inception_v4.py)

I already put the new iteration value to a smaller value, say (iteration_n = len(train_x)/batch_size+ 1)
where batch_sze=128 and use this:

if pre_index + batch_size < batch_size*iteration_n: #in place of 50000
....
Any help is appreciated.

@ahmad53135
Copy link

it seems it is because of low gpu memory

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