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

tf.function only supports singleton tf.Variables created on the first call. Make sure the tf.Variable is only created once or created outside tf.function. #7

Open
railgun-zyy opened this issue Feb 23, 2023 · 1 comment

Comments

@railgun-zyy
Copy link

I compiled as required, and the following problems occurred:tf.function only supports singleton tf.Variables created on the first call. Make sure the tf.Variable is only created once or created outside tf.function.

What do I need to modify?

@tranleanh
Copy link
Owner

Hi,

Make sure that you installed the proper versions of tensorflow and keras.

The best way is to install via the command: pip install -r requirements.txt

Good luck.

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

2 participants