Skip to content

[FEAT] TF2 compatibility #203

Description

@rcabanasdepaz

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions