-
Notifications
You must be signed in to change notification settings - Fork 50
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
WARNING:tensorflow:5 out of the last 13 calls #257
Comments
Hi Talha. I've see this as well. I believe it is because grid search passes in inputs of different lengths, which forces TensorFlow to re-do some work internally that is normally cached (re-compile parts of the execution graph or something like that). So it's not really an issue with SciKeras per se. That said, I'm happy to look into it some more if you can provide a minimal working example. Are you seeing any issues aside from the warning? |
Here is the code
|
Hi, i am getting this warning when i used GridSearchCv. otherwise i did not. ANy idea
WARNING:tensorflow:5 out of the last 13 calls to <function Model.make_predict_function..predict_function at 0x7feb67b54940> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.
The text was updated successfully, but these errors were encountered: