edn-gtm icon indicating copy to clipboard operation
edn-gtm copied to clipboard

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.

Open railgun-zyy opened this issue 2 years ago • 1 comments

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?

railgun-zyy avatar Feb 23 '23 05:02 railgun-zyy

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.

tranleanh avatar Feb 23 '23 07:02 tranleanh