AG-Peter/encodermap

compatibility with tensorflow2

Closed this issue · 2 comments

Hi,
Thanks for the nice coding ! I am trying to use the encodermap, but in the examples,
I run into issues because of incompatibilitites with the new version of tensorflow.
I also have difficulties to install the old version of tensorflow.
I have tried some tricks found on the internet to increase compatibilities, such as adding two versions of TF
"""
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import tensorflow as tf2
"""
and modifying minimally the code, but since I do not know well tensorflow, I did not get it all right.
Do you plan to upgrade encodermap for the new tensorflow version ?

Hi,

unfortunately moving to tf2 is not as easy as importing some "import tensorflow.compat.v1". There are some quite substantial changes in tf2.

@kevinsawade has been working on a tf2 version maybe he can help you out.

Until then using tf1 is your best option. You can install it in a virtual environment if you have other projects that need tf2.