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

tensorflow warning #7

Open
SabrinaRichter opened this issue Sep 11, 2021 · 0 comments
Open

tensorflow warning #7

SabrinaRichter opened this issue Sep 11, 2021 · 0 comments

Comments

@SabrinaRichter
Copy link
Owner

@Hrovatin do you have experience with errors like this? I got similar ones for predictions yesterday and now for training. Do you think it's because we use numpy arrays as input to the fit function? o.O

WARNING:tensorflow:5 out of the last 3150 calls to <function Model.make_train_function..train_function at 0x154b9dc679d0> 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.

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

1 participant