RelevanceAI / vectorhub

Vector Hub - Library for easy discovery, and consumption of State-of-the-art models to turn data into vectors. (text2vec, image2vec, video2vec, graph2vec, bert, inception, etc)
https://relevanceai.com
550 stars 58 forks source link

WARNING: tensorflow: 11 out of the last 11 calls #72

Closed AselToktogulova closed 3 years ago

AselToktogulova commented 3 years ago

Hello community,

I get this warning and going to ask you how to deal with it and what is the reason for it

WARNING:tensorflow:11 out of the last 11 calls to <function recreate_function.<locals>.restored_function_body at 0x7fea085935e0> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. 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.
W

thank a lot!

JackyKoh commented 3 years ago

Hey @AselToktogulova it's a warning you can ignore. It has to do with using SavedModels in tensorflow https://github.com/tensorflow/hub/issues/734