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

predict 提示使用tf.function #10

Open
ibmxiang opened this issue Jul 20, 2020 · 0 comments
Open

predict 提示使用tf.function #10

ibmxiang opened this issue Jul 20, 2020 · 0 comments

Comments

@ibmxiang
Copy link

tensorflow:7 out of the last 7 calls to <function _make_execution_function..distributed_function at 0x0000019E6F4A59D8> 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.

但是我使用@tf.function的时候,提示 tnesor 没有numpy

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