-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
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()