question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

what is this warning in the callbacks?

See original GitHub issue

UserWarning: Method on_batch_end() is slow compared to the batch update (0.151899). Check your callbacks.

what is that warning? and why?

Thank you!

  • Check that you are up-to-date with the master branch of Keras. You can update with: pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

  • If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

  • If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with: pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

  • Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

31reactions
Demetrio92commented, Aug 20, 2020

the level of idiocy in this thread is unbelievable.

13reactions
bstrinercommented, Jan 12, 2017

Literally what it says, You are running something like saving the model or rendering images after each batch and it is taking longer than the batches themselves.

Are you doing something each batch that could be causing the issue? Or are you just asking how the warning can be disabled?

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix to avoid ESLint Effect callbacks warning in React
I want to use the async/await pattern in my useEffect React hook and I'm getting an ESLint warning that I don't understand.
Read more >
GearmanClient::setWarningCallback - Manual - PHP
Sets a function to be called when a worker sends a warning. The callback should accept a single argument, a GearmanTask object.
Read more >
Modeling assistance callback - IBM
The modeling assistance callback allows the user to intercept information coming from modeling assistance.
Read more >
BEE Plugin Tech Docs | onWarning / onError callbacks
The callback manages JSON as the output data format. Configuration. To handle these warnings, add the onWarning callback to beeConfig: JavaScript. javascript ...
Read more >
Getting Warning Callbacks for Fonts Substitution in Aspose ...
Create a custom callback class to receive the callbacks. Set the warning callbacks using using LoadOptions class; Load the presentation file that is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found