PGM-Lab / InferPy

InferPy: Deep Probabilistic Modeling with Tensorflow Made Easy
https://inferpy-docs.readthedocs.io/en/stable/index.html
Apache License 2.0
147 stars 14 forks source link

[FEAT] TF2 compatibility #203

Open rcabanasdepaz opened 4 years ago

rcabanasdepaz commented 4 years ago

Make compatible with TF2 (non eager) and latest versions of TFP . This will not affect to the API, only internal changes are required.

Some useful code:

# check TF version
int(tf.__version__.split(".")[0]) >= 2

# check eager execution
tf.executing_eagerly()

# disable eager execution
tf.compat.v1.disable_eager_execution()

# get session
tf.compat.v1.get_default_session()
JontySinai commented 4 years ago

@rcabanasdepaz Hi, what is the development status for this? There doesn't seem to be any active branch with TF2 compatibility.

rcabanasdepaz commented 4 years ago

Hi Jonty, Unfortunately, we have not been been able to work in the development of this, but we hope to do it soon. We will let you know.