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

Adding callback 'on_training_failed'? #12309

Closed
maxpv opened this issue Feb 20, 2019 · 0 comments
Closed

Adding callback 'on_training_failed'? #12309

maxpv opened this issue Feb 20, 2019 · 0 comments

Comments

@maxpv
Copy link

maxpv commented Feb 20, 2019

At the early stages of the training of the model, I find sometimes having troubles with generators, which causes an error while training -and stops it.

I was wondering why can't we have a callback in the vein of on_training_fails, for example, if we insert at this line:

except Exception as e:
   callbacks.on_training_fails(e)

or

except Exception as e:
   callbacks.on_training_fails(e, epoch, generator_output)
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