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

Tensorflow version problem #8

Open
tonglizi opened this issue May 13, 2020 · 3 comments · May be fixed by #9
Open

Tensorflow version problem #8

tonglizi opened this issue May 13, 2020 · 3 comments · May be fixed by #9

Comments

@tonglizi
Copy link

I download the project in my WINDOWS PC. I'm using tensorflow-gpu 2.2.0, but when I try to run the test code, it shows "AttributeError: module 'tensorflow' has no attribute 'reset_default_graph ". I'd like to know the specific thesorflow verison used in the project. Thanks!

@Tobias-Fischer Tobias-Fischer linked a pull request May 25, 2020 that will close this issue
@Tobias-Fischer
Copy link

@tonglizi - see #9

@MichaelJoker
Copy link

@tonglizi You can use the following two lines to replace import tensorflow as tf:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
However, as you are using WINDOWS OS, then there may be some problems (As I have already tested in my WINDOWS PC). Then it's better to downgrade TensorFlow to 1.x. The author tested it on 1.4.1 and 1.6.0 in Linux, seen here. And I have successfully tested on 1.14.0 in my WINDOWS PC. Hope these info can help you.

@JazzyFeng
Copy link

@tonglizi You can use the following two lines to replace import tensorflow as tf:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
However, as you are using WINDOWS OS, then there may be some problems (As I have already tested in my WINDOWS PC). Then it's better to downgrade TensorFlow to 1.x. The author tested it on 1.4.1 and 1.6.0 in Linux, seen here. And I have successfully tested on 1.14.0 in my WINDOWS PC. Hope these info can help you.

You saved my life!

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

Successfully merging a pull request may close this issue.

4 participants