New content on http://keras.io : Keras debugging tips.https://keras.io/examples/keras_recipes/debugging_tips/ …
-
Show this thread
-
1 - Test the parts before you test the whole 2 - Use `model.summary()` and `plot_model()` to check output shapes and connectivity graph 3 - Use `run_eagerly=True` in `compile()` to debug training step-by-step 4 - Use the TF profiler (simple callback) to fix performance issues
2 replies 18 retweets 107 likesShow this thread -
Also, yes -- if you ever find yourself needing second-order gradients when writing a Keras training step, this is how to get them:pic.twitter.com/FY7fm8eE2k
2 replies 12 retweets 92 likesShow this thread
If you're using fit/predict, you never need to use tf.function (just pass run_eagerly=True/False in compile). If you're writing low-level training loops from scratch, add a tf.function decorator to your training step (just one in total).
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.