-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
Keras fails to train on custom generator (Torch backend) #19929
Comments
Seems to be the data adapter issue. Can't seem to make the training work in Torch regardless of what data I use. I tried feeding both torch's DataLoaders and tf's Datasets, and the results are the same. |
a temporary workaround is to specify the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keras model would throw an error on training when using Torch backend and a custom (Python) data generator.
Steps to reproduce:
epoch=1
andsteps_per_epoch=1
UnboundLocalError: local variable 'logs' referenced before assignment
suggesting that the training loop itself was skipped, andepoch_iterator.enumerate_epoch()
has issues wrapping provided generator.The same steps would work just fine with TF.
Colab
Edit: torch==2.3 seems to be incompatible with Keras, but it would have the same fail on 2.2 which should be supported
The text was updated successfully, but these errors were encountered: