You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because, When I run this codes it takes 30-40 seconds to start.
And the warning is
WARNING:tensorflow:5 out of the last 118 calls to <function Model.make_predict_function..predict_function at 0x0000017B38050940> 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/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
suggest me better way to run this code. Thanks in advance
The text was updated successfully, but these errors were encountered:
Because, When I run this codes it takes 30-40 seconds to start.
And the warning is
WARNING:tensorflow:5 out of the last 118 calls to <function Model.make_predict_function..predict_function at 0x0000017B38050940> 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/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
suggest me better way to run this code. Thanks in advance
The text was updated successfully, but these errors were encountered: