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

报错 ValueError: tf.function-decorated function tried to create variables on non-first call. #7

Open
codewithzichao opened this issue May 30, 2020 · 2 comments

Comments

@codewithzichao
Copy link

ValueError: tf.function-decorated function tried to create variables on non-first call.

@saiwaiyanyu
Copy link
Owner

ValueError: tf.function-decorated function tried to create variables on non-first call.

有定位到问题并解决么?如果解决了,可否分享下解决思路, 我这里没有出现这个问题。

@ibmxiang
Copy link

同样出现这个问题,注释掉tf.function 才正常。但是但是多次predict出现
5 out of the last 5 calls to <function _make_execution_function.,Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors

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

3 participants