-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Batch consumed during symbolic build is not processed during training. #20394
Comments
Tensorflow trainer's train and test functions refactoring Fix keras-team#20394 Fix keras-team#20390 Fix keras-team#20344
Hi @nicolaspi - Thanks for reporting the issue. I am able to reproduce the issue on JAX and Torch backend only. For tensorflow backend I am getting Total batches seen during training with (steps_per_epochs=2):2 only. This is because steps_per_epoch also works with epochs while fitting the model. Attached gist here for the reference. |
Thanks for your insight, I proposed a PR to fix the issue. |
When training with
steps_per_epoch
, the dataset iterator is not reinitialized after the symbolic build of the model, leading to one batch being consumed outside the training loop.The text was updated successfully, but these errors were encountered: