-
Notifications
You must be signed in to change notification settings - Fork 450
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
ValueError: Dimension size must be evenly divisible by 250 but is 1 for '{{node Reshape}} #287
Comments
@codebecker If you have solved this problem, can you tell me how you solved it? |
TLDR: The error appear because I used a batch size of 250 which yield the error of
@NOS9512: I hope that helps wish you a merry christmas 🎄 |
I faced a similar problem and training is very slow with the microbtach set to 1 Any update to make training possible with a bigger size of the microbatch? |
Hello Community,
I'm currently working on a project which requires me to include differential privacy. While I try to implement it using tf privacy, I become an error message:
ValueError: Dimension size must be evenly divisible by 250 but is 1 for '{{node Reshape}} = Reshape[T=DT_FLOAT, Tshape=DT_INT32](sparse_categorical_crossentropy/weighted_loss/value, Reshape/shape)' with input shapes: [], [2] and with input tensors computed as partial shapes: input[1] = [250,?].
The error takes place in line 381 where the model should be fitted. Because my code is over 400 lines long and I have no clue which lines are interesting, I will share it with you via codeshare: https://codeshare.io/mpvkVj
If the issue gets resolved, I will include the interesting lines later on. Thank you very much for every hint 😃
The text was updated successfully, but these errors were encountered: