相关疑难解决方法(0)

警告:tensorflow:最近 11 次调用中的 11 次触发了 tf.function 回溯

有人知道这个错误的原因吗?

WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
WARNING:tensorflow:11 out of the last 11 calls to <function Model.make_predict_function.<locals>.predict_function at 0x000001F9D1C05EE0> 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 …
Run Code Online (Sandbox Code Playgroud)

python warnings tensorflow jupyter-notebook

10
推荐指数
2
解决办法
5112
查看次数

标签 统计

jupyter-notebook ×1

python ×1

tensorflow ×1

warnings ×1