Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement in TensorFlow 2.x? #6

Open
tandy-1000 opened this issue Jun 17, 2020 · 4 comments
Open

Reimplement in TensorFlow 2.x? #6

tandy-1000 opened this issue Jun 17, 2020 · 4 comments

Comments

@tandy-1000
Copy link

Are you going to update the library to work with newer versions of TensorFlow?

@jamesb93
Copy link

At the moment this isn't installable on windows as the dependencies are asking for tensorflow versions that aren't available through pip.

@jamesb93
Copy link

jamesb93 commented Aug 2, 2020

At the moment this isn't installable on windows as the dependencies are asking for tensorflow versions that aren't available through pip.

I found the problem was trying to install via Python 3.8 in my virtual environment. To install TF 1.15 you need to have version 3.7.

@CoteDave
Copy link

CoteDave commented Oct 8, 2020

You just have to replace everywhere (3 files):
import tensorflow as tf

With:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

And everything works like a charm!

@phurwicz
Copy link

phurwicz commented Mar 3, 2022

Opened a PR to take care of TF versions automatically: #8
@maxfrenzel could you take a look? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants