deprekate / genotate

Prokaryotic and phage genome annotation tool
GNU General Public License v3.0
4 stars 0 forks source link

Newer versions of TensorFlow cause errors #2

Open deprekate opened 7 months ago

deprekate commented 7 months ago

Syntax for TensorFlow code has been changed since the latest Genotate releas, which will give an error:

ValueError: A KerasTensor cannot be used as input to a TensorFlow function. A KerasTensor is a symbolic placeholder for a shape and dtype, used when constructing Keras Functional models or Keras Functions. You can only use it as input to a Keras layer or a Keras operation (from the namespaces `keras.layers` and `keras.operations`).

Until the Genotate code is patched, one solution is to downgrade TensorFlow. I haven't figured the last version Genotate supports, but 2.10.0 seems to work pretty well:

python3 -m pip install tensorflow==2.10.0